Home

Any class may be inherited by another class in the same package.

A. True

B. False

You can do it
  1. The default case is always required in the switch selection structure.
  2. Which key word can protect a class in package from accessibility by the classes outside the package?
  3. An individual array element that is passed to a method and modified in that method will contain the…
  4. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  5. Which of the following methods can be used to remove a component from the display?
  6. Every call to wait has a corresponding call to notify that will eventually end the wafting.
  7. Which of the following methods can be used to draw the outline of a square?
  8. Which of the following classes are available in the java.lang package?
  9. A package is a collection of
  10. Give file is a file object, which of the following are legal statements to create a new file.
  11. Session bean
  12. A static class method can be invoked by simply using the name of the method alone.
  13. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  14. Which of the following methods belong to the String class?
  15. The name of the RMI compiler is ___________
  16. Consider the following class definitions: class maths { student student1; } class student { String name;…
  17. The use of protected keyword to a member in a class will restrict its visibility as follows:
  18. To delete a file, we can use an instance of class file.
  19. executeUpdate automatically updates data because___________
  20. The methods wait() and noify() are defined in
  21. The import statement is always the first no comment statement in a Java program files.
  22. When we invoke repaint () for a Component, the AWT invokes the method:
  23. When the string objects are compared with ==, the result is true If the strings contain the same values.
  24. The concept of multiple inheritance is implemented in Java by
  25. Which of the following control expressions are valid for an if statement?
  26. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  27. With javadoc, which of the following denotes a javadoc comment?
  28. Which are the valid ways to create DataInputStream streams?
  29. Java always provides a default constructor to a class.
  30. When we implement the Runnable interface, we must define the method