Home

Which of the following keywords are used to control access to a class member?

A. default

B. protected

C. interface

D. None of the above

Please do not use chat terms. Example: avoid using "grt" instead of "great".

You can do it
  1. Servlet has ___________
  2. To delete a file, we can use an instance of class file.
  3. The length of a string object 's1' can be obtained using the expression s1.length.
  4. A class may be both abstract and final.
  5. Which of the following represent legal flow control statements?
  6. The default case is always required in the switch selection structure.
  7. Declarations can appear anywhere in the body of a Java method.
  8. Which javadoc tag is used to denote a comment for methods parameters?
  9. Any method in a supper class can be over ridden in its subclass.
  10. Which of the following are the wrapper classes?
  11. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  12. EJBs can be of the following type(s)None of the above
  13. When we invoke repaint () for a Component, the AWT invokes the method:
  14. executeUpdate automatically updates data because___________
  15. When we implement an interface method, it should be declared as public.
  16. The break statement is required in the default case of a switch selection structure.
  17. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  18. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  19. We would like to make a member of a class visible in all subclasses regardless of what package they…
  20. The programmer must explicitly create the system .in and system .out objects.
  21. A static class method can be invoked by simply using the name of the method alone.
  22. In the code below, what data types the variable x can have?
  23. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  24. The name of the RMI compiler is ___________
  25. We can over load methods with differences only in their return type.
  26. Throwing an exception always causes program termination.
  27. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  28. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
  29. Which of the following will produce a value of 22 if x=22.9:
  30. The keywords reserved but not used in the initial version of Java re: