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.

Related Questions

  1. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  2. A final class may not have any abstract method.
  3. JdbcOdbcDriver is an object of Object class
  4. A package is a collection of
  5. Which of the following command lines options generates documentation for all classes and methods?
  6. An individual array element that is passed to a method and modified in that method will contain the…
  7. Throwing an exception always causes program termination.
  8. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  9. Consider the following class definitions: class maths { student student1; } class student { String name;…
  10. Which of the following keywords are used to control access to a class member?
  11. The check box group class is a subclass of the component class.
  12. Every call to wait has a corresponding call to notify that will eventually end the wafting.
  13. In the code below, what data types the variable x can have?
  14. It is perfectly legal to refer to any instance variable inside of a static method.
  15. Submit button always fires doPost(...)
  16. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  17. Which javadoc tag is used to denote a comment for methods parameters?
  18. Frames and applets cannot be used together in the same program.
  19. Declarations can appear anywhere in the body of a Java method.
  20. Which of the following represent legal flow control statements?
  21. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  22. forName() is a static factory method
  23. Which of the following are the wrapper classes?
  24. All the bitwise operators have the same level of precedence in Java.
  25. A JSP file can be stored_________________
  26. In order to connect to a database through java program we must create _______-
  27. Which of the following statements are true?
  28. Which of the following methods can be used to change the size of a size() *resize()
  29. The modulus operator (%) can be used only with Integer operands.
  30. Consider the following class definition.Class Student extends String{}What happens when we try to compile…

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