Home

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. EJBs can be of the following type(s)None of the above
  2. The break statement is required in the default case of a switch selection structure.
  3. A catch can have comma-separated multiple arguments.
  4. executeUpdate(------------) returns ___________
  5. Which of the following methods can be used to change the size of a size() *resize()
  6. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  7. Which of the following are not keywords?
  8. Declarations can appear anywhere in the body of a Java method.
  9. In a single Servlet class we can use____________
  10. We would like to make a member of a class visible in all subclasses regardless of what package they…
  11. Session bean
  12. When present, package must be the first no comment statement in the file.
  13. Every method of a final in class is implicitly final.
  14. We can over load methods with differences only in their return type.
  15. Throwing an exception always causes program termination.
  16. In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
  17. A method declared as static can not access non-static class members.
  18. putValue(...) method takes _____________________-
  19. To delete a file, we can use an instance of class file.
  20. Which of the following are the wrapper classes?
  21. Which of the following will produce a value of 10 if x = 9.7?
  22. Consider the following class definitions: class maths { student student1; } class student { String name;…
  23. Give file is a file object, which of the following are legal statements to create a new file.
  24. Java always provides a default constructor to a class.
  25. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  26. Which javadoc tag is used to denote a comment for methods parameters?
  27. Which are the valid ways to create DataInputStream streams?
  28. class.forName(...) creates an instance of java ODBC driver
  29. JdbcOdbcDriver is an object of Object class
  30. With javadoc, which of the following denotes a javadoc comment?