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. To delete a file, we can use an instance of class file.
  2. The default case is always required in the switch selection structure.
  3. Declarations can appear anywhere in the body of a Java method.
  4. The modulus operator (%) can be used only with Integer operands.
  5. It is perfectly legal to refer to any instance variable inside of a static method.
  6. Which of the following will produce a value of 10 if x = 9.7?
  7. The methods wait() and noify() are defined in
  8. All the bitwise operators have the same level of precedence in Java.
  9. DataInput is
  10. The concept of multiple inheritance is implemented in Java by
  11. Which of the following are keywords?
  12. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  13. Which are the valid ways to create DataInputStream streams?
  14. The length of a string object 's1' can be obtained using the expression s1.length.
  15. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  16. Given the codeString s = new String("abc");Which of the following calls are valid?
  17. Consider the following class definitions: class maths { student student1; } class student { String name;…
  18. A constructor must always invoke its supper class constructor in its first statement.
  19. Any method in a supper class can be over ridden in its subclass.
  20. Which exception is thrown by the read() method of InputStream class?
  21. Servlet can have ___________
  22. Which key word can protect a class in package from accessibility by the classes outside the package?
  23. A panel can not be added to another panel.
  24. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  25. Give file is a file object, which of the following are legal statements to create a new file.
  26. What does the following line of code do?TextField text=new TextField(10);
  27. The check box group class is a subclass of the component class.
  28. Which of the following methods belong to the String class?
  29. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  30. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…