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. In the code below, what data types the variable x can have?
  2. The setBackground() method is part of the class
  3. Which of the following control expressions are valid for an if statement?
  4. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  5. Which of the following statements are valid array declarations?
  6. Which of the following are not keywords?
  7. The modulus operator (%) can be used only with Integer operands.
  8. The default case is always required in the switch selection structure.
  9. When we implement an interface method, it should be declared as public.
  10. Which of the following represent legal flow control statements?
  11. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  12. Which of the following will produce a value of 22 if x=22.9:
  13. Servlet has ___________
  14. Which of the following statements are true?
  15. Declarations can appear anywhere in the body of a Java method.
  16. The import statement is always the first no comment statement in a Java program files.
  17. A string object can not be modified after it is created.
  18. Any class may be inherited by another class in the same package.
  19. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  20. The concept of multiple inheritance is implemented in Java by
  21. Which of the following command lines options generates documentation for all classes and methods?
  22. In RMI we invoke client method from remote server
  23. Objects are passed to a method by use of call-by-reference.
  24. Servlet can have ___________
  25. A static class method can be invoked by simply using the name of the method alone.
  26. An EJB is a server-side component that encapsulates the business logic of an application
  27. A variable declared inside the for loop control can not be referenced out side the loop.
  28. Submit button always fires doPost(...)
  29. In RMI before running the client program we must start RMI Registry.
  30. DataInput is