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. Which of the following represent legal flow control statements?
  2. Which key word can protect a class in package from accessibility by the classes outside the package?
  3. Which of the following statements are true?
  4. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  5. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  6. A variable declared inside the for loop control can not be referenced out side the loop.
  7. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  8. The import statement is always the first no comment statement in a Java program files.
  9. Which of the following will produce a value of 22 if x=22.9:
  10. An EJB is a server-side component that encapsulates the business logic of an application
  11. A package is a collection of
  12. The check box group class is a subclass of the component class.
  13. It is perfectly legal to assign a subclass object to a supper class reference.
  14. Given the codeString s = new String("abc");Which of the following calls are valid?
  15. JSP files creates ________________
  16. The length of a string object 's1' can be obtained using the expression s1.length.
  17. The modulus operator (%) can be used only with Integer operands.
  18. What does the following line of code do?TextField text=new TextField(10);
  19. Which of the following methods can be used to draw the outline of a square?
  20. With javadoc, which of the following denotes a javadoc comment?
  21. Throwing an exception always causes program termination.
  22. Consider the following class definition.Class Student extends String{}What happens when we try to compile…
  23. The use of protected keyword to a member in a class will restrict its visibility as follows:
  24. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  25. Consider the following class definitions: class maths { student student1; } class student { String name;…
  26. Frames and applets cannot be used together in the same program.
  27. When we invoke repaint () for a Component, the AWT invokes the method:
  28. In RMI before running the client program we must start RMI Registry.
  29. A panel can not be added to another panel.
  30. In RMI we invoke client method from remote server