Home

Declarations can appear anywhere in the body of a Java method.

A. True

B. False

You can do it
  1. When we invoke repaint () for a Component, the AWT invokes the method:
  2. Which of the following methods can be used to remove a component from the display?
  3. A JSP file can be stored_________________
  4. A catch can have comma-separated multiple arguments.
  5. Session bean
  6. Which of the following will produce a value of 10 if x = 9.7?
  7. Which of the following methods can be used to change the size of a size() *resize()
  8. Two methods cannot have the same name in Java.
  9. class.forName(...) creates an instance of java ODBC driver
  10. Declaring a method synchronized guarantees that the deadlock cannot occur.
  11. Which of the following methods can be used to draw the outline of a square?
  12. A static class method can be invoked by simply using the name of the method alone.
  13. A method declared as static can not access non-static class members.
  14. Objects are passed to a method by use of call-by-reference.
  15. Consider the following class definitions: class maths { student student1; } class student { String name;…
  16. In RMI we invoke client method from remote server
  17. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  18. Submit button always fires doPost(...)
  19. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  20. In the code below, what data types the variable x can have?
  21. With javadoc, which of the following denotes a javadoc comment?
  22. Which of the following classes are available in the java.lang package?
  23. putValue(...) method takes _____________________-
  24. A package is a collection of
  25. All the bitwise operators have the same level of precedence in Java.
  26. We can over load methods with differences only in their return type.
  27. A class may be both abstract and final.
  28. The methods wait() and noify() are defined in
  29. Consider the following class definition.Class Student extends String{}What happens when we try to compile…
  30. forName() is a static factory method