Home

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

A. True

B. False

You can do it
  1. A method declared as static can not access non-static class members.
  2. The setBackground() method is part of the class
  3. The name of the RMI compiler is ___________
  4. Which of the following statements are valid array declarations?
  5. Every call to wait has a corresponding call to notify that will eventually end the wafting.
  6. In a single Servlet class we can use____________
  7. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  8. Any method in a supper class can be over ridden in its subclass.
  9. A Java monitor must either extend thread class or implement Runnable interface.
  10. A string object can not be modified after it is created.
  11. class.forName(...) creates an instance of java ODBC driver
  12. One the features of is that an array can store many different types of values.
  13. Which of the following classes are available in the java.lang package?
  14. We would like to make a member of a class visible in all subclasses regardless of what package they…
  15. It is perfectly legal to assign a subclass object to a supper class reference.
  16. The methods wait() and noify() are defined in
  17. forName() is a static factory method
  18. The default case is always required in the switch selection structure.
  19. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  20. executeUpdate automatically updates data because___________
  21. In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
  22. We can over load methods with differences only in their return type.
  23. All methods in an abstract class must be declared abstract.
  24. The import statement is always the first no comment statement in a Java program files.
  25. Which are the valid ways to create DataInputStream streams?
  26. Java always provides a default constructor to a class.
  27. A static class method can be invoked by simply using the name of the method alone.
  28. The break statement is required in the default case of a switch selection structure.
  29. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  30. The length of a string object 's1' can be obtained using the expression s1.length.