Home

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

A. True

B. False

You can do it
  1. When the string objects are compared with ==, the result is true If the strings contain the same values.
  2. A final class may not have any abstract method.
  3. Which of the following classes are available in the java.lang package?
  4. We would like to make a member of a class visible in all subclasses regardless of what package they…
  5. It is an error to have a method with the same signature in both the super class and its subclass.
  6. A constructor must always invoke its supper class constructor in its first statement.
  7. DataInput is
  8. To delete a file, we can use an instance of class file.
  9. It is perfectly legal to assign a subclass object to a supper class reference.
  10. In RMI we invoke client method from remote server
  11. Objects are passed to a method by use of call-by-reference.
  12. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  13. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  14. EJBs can be of the following type(s)None of the above
  15. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  16. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  17. Any class may be inherited by another class in the same package.
  18. The setBackground() method is part of the class
  19. A method declared as static can not access non-static class members.
  20. What does the following line of code do?TextField text=new TextField(10);
  21. In RMI before running the client program we must start RMI Registry.
  22. Declaring a method synchronized guarantees that the deadlock cannot occur.
  23. A variable declared inside the for loop control can not be referenced out side the loop.
  24. Which of the following statements are true?
  25. The check box group class is a subclass of the component class.
  26. Which key word can protect a class in package from accessibility by the classes outside the package?
  27. Session bean
  28. Java always provides a default constructor to a class.
  29. An individual array element that is passed to a method and modified in that method will contain the…
  30. It is an error if a class with one or more abstract methods is not explicitly declared abstract.