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

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

You can do it
  1. Which of the following methods can be used to remove a component from the display?
  2. putValue(...) method takes _____________________-
  3. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  4. JdbcOdbcDriver is an object of Object class
  5. When we invoke repaint () for a Component, the AWT invokes the method:
  6. What is java -g used for?
  7. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  8. Servlet has ___________
  9. Two methods cannot have the same name in Java.
  10. Which of the following will produce a value of 22 if x=22.9:
  11. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  12. Which of the following methods can be used to draw the outline of a square?
  13. Every call to wait has a corresponding call to notify that will eventually end the wafting.
  14. When we implement an interface method, it should be declared as public.
  15. Which of the following classes are available in the java.lang package?
  16. Any class may be inherited by another class in the same package.
  17. The keywords reserved but not used in the initial version of Java re:
  18. When we implement the Runnable interface, we must define the method
  19. Which of the following statements are valid array declarations?
  20. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  21. Given the codeString s = new String("abc");Which of the following calls are valid?
  22. Which of the following are the wrapper classes?
  23. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  24. A package is a collection of
  25. All methods in an abstract class must be declared abstract.
  26. A Java monitor must either extend thread class or implement Runnable interface.
  27. forName() is a static factory method
  28. executeUpdate automatically updates data because___________
  29. In RMI before running the client program we must start RMI Registry.
  30. The length of a string object 's1' can be obtained using the expression s1.length.