Home

The use of protected keyword to a member in a class will restrict its visibility as follows:

A. Visibility only in the class and its subclasses in the same package.

B. Visibility only inside the same package.

C. Visibility in all classes in the same package and subclasses in other packages.

D. Visibility only in the class where it is declared.

You can do it
  1. A final class may not have any abstract method.
  2. The default case is always required in the switch selection structure.
  3. When present, package must be the first no comment statement in the file.
  4. The keywords reserved but not used in the initial version of Java re:
  5. In a single Servlet class we can use____________
  6. Submit button always fires doPost(...)
  7. In RMI before running the client program we must start RMI Registry.
  8. Any class may be inherited by another class in the same package.
  9. Which of the following statements are true?
  10. In RMI we invoke client method from remote server
  11. The break statement is required in the default case of a switch selection structure.
  12. Which of the following command lines options generates documentation for all classes and methods?
  13. class.forName(...) creates an instance of java ODBC driver
  14. In the code below, what data types the variable x can have?
  15. executeUpdate(------------) returns ___________
  16. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
  17. The methods wait() and noify() are defined in
  18. The use of protected keyword to a member in a class will restrict its visibility as follows:
  19. Session bean
  20. When we invoke repaint () for a Component, the AWT invokes the method:
  21. Servlet has ___________
  22. Given the codeString s = new String("abc");Which of the following calls are valid?
  23. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  24. Which javadoc tag is used to denote a comment for methods parameters?
  25. Which of the following are not keywords?
  26. Two methods cannot have the same name in Java.
  27. DataInput is
  28. putValue(...) method takes _____________________-
  29. Servlet can have ___________
  30. Which of the following statements are true?