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 always provides a default constructor to a class.
  2. Which of the following methods can be used to draw the outline of a square?
  3. The name of the RMI compiler is ___________
  4. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
  5. The import statement is always the first no comment statement in a Java program files.
  6. The modulus operator (%) can be used only with Integer operands.
  7. The programmer must explicitly create the system .in and system .out objects.
  8. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  9. Servlet has ___________
  10. A string object can not be modified after it is created.
  11. A Java monitor must either extend thread class or implement Runnable interface.
  12. Session bean
  13. Submit button always fires doPost(...)
  14. putValue(...) method takes _____________________-
  15. When we invoke repaint () for a Component, the AWT invokes the method:
  16. Which of the following methods belong to the String class?
  17. Which of the following methods can be used to remove a component from the display?
  18. A variable declared inside the for loop control can not be referenced out side the loop.
  19. Every method of a final in class is implicitly final.
  20. A final class may not have any abstract method.
  21. It is an error to have a method with the same signature in both the super class and its subclass.
  22. A JSP file can be stored_________________
  23. All methods in an abstract class must be declared abstract.
  24. Java is fully object oriented programme.
  25. The concept of multiple inheritance is implemented in Java by
  26. Any method in a supper class can be over ridden in its subclass.
  27. In the code below, what data types the variable x can have?
  28. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  29. One the features of is that an array can store many different types of values.
  30. Which are the valid ways to create DataInputStream streams?