Home

We would like to make a member of a class visible in all subclasses regardless of what package they are in. Which one of the following keywords would achieve this?

A. private

B. protected

C. public

D. private protected

You can do it
  1. Java is fully object oriented programme.
  2. Which of the following statements are valid array declarations?
  3. A Java monitor must either extend thread class or implement Runnable interface.
  4. Which of the following command lines options generates documentation for all classes and methods?
  5. In RMI before running the client program we must start RMI Registry.
  6. JSP files creates ________________
  7. Consider the following class definitions: class maths { student student1; } class student { String name;…
  8. Servlet can have ___________
  9. class.forName(...) creates an instance of java ODBC driver
  10. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  11. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  12. A JSP file can be stored_________________
  13. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  14. The use of protected keyword to a member in a class will restrict its visibility as follows:
  15. We can add more than one class(es) at the time of compilation Java Beans.
  16. Declarations can appear anywhere in the body of a Java method.
  17. A constructor must always invoke its supper class constructor in its first statement.
  18. A class may be both abstract and final.
  19. Two methods cannot have the same name in Java.
  20. Which of the following are the wrapper classes?
  21. In the code below, what data types the variable x can have?
  22. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  23. When we implement an interface method, it should be declared as public.
  24. To delete a file, we can use an instance of class file.
  25. The methods wait() and noify() are defined in
  26. Any method in a supper class can be over ridden in its subclass.
  27. A variable declared inside the for loop control can not be referenced out side the loop.
  28. The break statement is required in the default case of a switch selection structure.
  29. One the features of is that an array can store many different types of values.
  30. Which of the following represent legal flow control statements?