Home

Members of a class specified as private are accessible only to the methods of the class.

A. True

B. False

You can do it
  1. The modulus operator (%) can be used only with Integer operands.
  2. All the bitwise operators have the same level of precedence in Java.
  3. Which of the following methods belong to the String class?
  4. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  5. A variable declared inside the for loop control can not be referenced out side the loop.
  6. An EJB is a server-side component that encapsulates the business logic of an application
  7. With javadoc, which of the following denotes a javadoc comment?
  8. Consider the following class definition.Class Student extends String{}What happens when we try to compile…
  9. An individual array element that is passed to a method and modified in that method will contain the…
  10. Which of the following statements are true?
  11. Any class may be inherited by another class in the same package.
  12. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  13. The setBackground() method is part of the class
  14. The programmer must explicitly create the system .in and system .out objects.
  15. In RMI before running the client program we must start RMI Registry.
  16. Which of the following represent legal flow control statements?
  17. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  18. When we invoke repaint () for a Component, the AWT invokes the method:
  19. Consider the following class definitions: class maths { student student1; } class student { String name;…
  20. The name of the RMI compiler is ___________
  21. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  22. Java is fully object oriented programme.
  23. Which of the following methods can be used to change the size of a size() *resize()
  24. Which of the following statements are valid array declarations?
  25. Declaring a method synchronized guarantees that the deadlock cannot occur.
  26. In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
  27. It is perfectly legal to assign a subclass object to a supper class reference.
  28. In order to connect to a database through java program we must create _______-
  29. A package is a collection of
  30. EJBs can be of the following type(s)None of the above