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.

Please do not use chat terms. Example: avoid using "grt" instead of "great".

You can do it
  1. With javadoc, which of the following denotes a javadoc comment?
  2. In RMI before running the client program we must start RMI Registry.
  3. It is perfectly legal to assign a subclass object to a supper class reference.
  4. In RMI we invoke client method from remote server
  5. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  6. To delete a file, we can use an instance of class file.
  7. Which key word can protect a class in package from accessibility by the classes outside the package?
  8. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  9. Which of the following are keywords?
  10. In a single Servlet class we can use____________
  11. In order to connect to a database through java program we must create _______-
  12. Throwing an exception always causes program termination.
  13. The programmer must explicitly create the system .in and system .out objects.
  14. A Java monitor must either extend thread class or implement Runnable interface.
  15. Consider the following class definition.Class Student extends String{}What happens when we try to compile…
  16. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  17. Session bean
  18. A JSP file can be stored_________________
  19. The use of protected keyword to a member in a class will restrict its visibility as follows:
  20. The keywords reserved but not used in the initial version of Java re:
  21. Connection, Statement are interfaces and ResultSet is a class.
  22. Which exception is thrown by the read() method of InputStream class?
  23. Which of the following methods can be used to draw the outline of a square?
  24. Declarations can appear anywhere in the body of a Java method.
  25. EJBs can be of the following type(s)None of the above
  26. An EJB is a server-side component that encapsulates the business logic of an application
  27. Any method in a supper class can be over ridden in its subclass.
  28. Which of the following represent legal flow control statements?
  29. Java always provides a default constructor to a class.
  30. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.