Home

What is wrong in the following class definitions? 
abstract class print { 
abstract show();
}
class Display extends print {
}

A. Nothing is wrong

B. Wrong Method show() should have a return type

C. Wrong Methods show() is not implemented in Display

D. Wrong Display does not contain any members.

You can do it
  1. Which of the following control expressions are valid for an if statement?
  2. Any method in a supper class can be over ridden in its subclass.
  3. Members of a class specified as private are accessible only to the methods of the class.
  4. Which of the following methods can be used to remove a component from the display?
  5. Declaring a method synchronized guarantees that the deadlock cannot occur.
  6. Which of the following classes are available in the java.lang package?
  7. To delete a file, we can use an instance of class file.
  8. When the string objects are compared with ==, the result is true If the strings contain the same values.
  9. Objects are passed to a method by use of call-by-reference.
  10. Which of the following are the wrapper classes?
  11. JdbcOdbcDriver is an object of Object class
  12. The length of a string object 's1' can be obtained using the expression s1.length.
  13. We can add more than one class(es) at the time of compilation Java Beans.
  14. Any class may be inherited by another class in the same package.
  15. In RMI we invoke client method from remote server
  16. Which of the following statements are true?
  17. When we invoke repaint () for a Component, the AWT invokes the method:
  18. Which key word can protect a class in package from accessibility by the classes outside the package?
  19. Given the codeString s = new String("abc");Which of the following calls are valid?
  20. All methods in an abstract class must be declared abstract.
  21. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  22. Which of the following methods can be used to change the size of a size() *resize()
  23. A constructor must always invoke its supper class constructor in its first statement.
  24. Which of the following are not keywords?
  25. The modulus operator (%) can be used only with Integer operands.
  26. All the bitwise operators have the same level of precedence in Java.
  27. A package is a collection of
  28. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  29. Which exception is thrown by the read() method of InputStream class?
  30. We would like to make a member of a class visible in all subclasses regardless of what package they…