Which key word can protect a class in package from accessibility by the classes outside the package?

A. private

B. protected

C. final

D. don't use any keyword at all(make it default)

You can do it
  1. forName() is a static factory method
  2. Java is fully object oriented programme.
  3. We can over load methods with differences only in their return type.
  4. Which of the following control expressions are valid for an if statement?
  5. In the code below, what data types the variable x can have?
  6. Any class may be inherited by another class in the same package.
  7. When we implement the Runnable interface, we must define the method
  8. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  9. Give file is a file object, which of the following are legal statements to create a new file.
  10. Any method in a supper class can be over ridden in its subclass.
  11. A string object can not be modified after it is created.
  12. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  13. A constructor must always invoke its supper class constructor in its first statement.
  14. Every method of a final in class is implicitly final.
  15. The concept of multiple inheritance is implemented in Java by
  16. Connection, Statement are interfaces and ResultSet is a class.
  17. Consider the following class definition.Class Student extends String{}What happens when we try to compile…
  18. Submit button always fires doPost(...)
  19. executeUpdate automatically updates data because___________
  20. JdbcOdbcDriver is an object of Object class
  21. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  22. The name of the RMI compiler is ___________
  23. One the features of is that an array can store many different types of values.
  24. EJBs can be of the following type(s)None of the above
  25. All the bitwise operators have the same level of precedence in Java.
  26. JSP files creates ________________
  27. A class may be both abstract and final.
  28. A Java monitor must either extend thread class or implement Runnable interface.
  29. Which of the following classes are available in the java.lang package?
  30. The methods wait() and noify() are defined in