Home

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. Servlet has ___________
  2. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  3. Which of the following classes are available in the java.lang package?
  4. Session bean
  5. One the features of is that an array can store many different types of values.
  6. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
  7. A package is a collection of
  8. We can add more than one class(es) at the time of compilation Java Beans.
  9. DataInput is
  10. JSP files creates ________________
  11. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  12. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  13. An individual array element that is passed to a method and modified in that method will contain the…
  14. Which of the following control expressions are valid for an if statement?
  15. A class may be both abstract and final.
  16. It is perfectly legal to refer to any instance variable inside of a static method.
  17. A panel can not be added to another panel.
  18. When we implement the Runnable interface, we must define the method
  19. A catch can have comma-separated multiple arguments.
  20. When we implement an interface method, it should be declared as public.
  21. Objects are passed to a method by use of call-by-reference.
  22. In a single Servlet class we can use____________
  23. A final class may not have any abstract method.
  24. All methods in an abstract class must be declared abstract.
  25. Which of the following statements are true?
  26. The methods wait() and noify() are defined in
  27. Java is fully object oriented programme.
  28. Which of the following will produce a value of 10 if x = 9.7?
  29. A Java monitor must either extend thread class or implement Runnable interface.
  30. executeUpdate(------------) returns ___________