Earn $100 Online Daily. Work From Home. Click Here

What is the correct answer?


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

Which of the following methods can be used to change the size of a size()… We would like to make a member of a class visible in all subclasses regardless… Which exception is thrown by the read() method of InputStream class? A class may be both abstract and final. Which of the following command lines options generates documentation for… The keywords reserved but not used in the initial version of Java re: An individual array element that is passed to a method and modified in… class.forName(...) creates an instance of java ODBC driver Which of the following represent legal flow control statements? What is java -g used for? We can over load methods with differences only in their return type. The check box group class is a subclass of the component class. Given the codeString s = new String("abc");Which of the following calls… Which of the following methods can be used to remove a component from… In evaluating a logical expression of type 'Boolean expression 1&& Boolean… Any class may be inherited by another class in the same package. Which of the following statements are true? Which of the following will produce a value of 10 if x = 9.7? Give file is a file object, which of the following are legal statements… Which of the following classes are available in the java.lang package? When X is a positive number the operations x>> 2 and x>>>2… The expression (x == y && a<b) is true If either x == y is true or… The programmer must explicitly create the system .in and system .out objects. Which of the following statements are valid array declarations? Which of the following are the wrapper classes? Members of a class specified as private are accessible only to the methods… When we invoke repaint () for a Component, the AWT invokes the method: Two methods cannot have the same name in Java. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend… DataInput is