Home

What is the correct answer?

4

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.

Correct Answer :

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


Related Questions

Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division… A class may be both abstract and final. Which of the following string can be used as mode string for creating… Java always provides a default constructor to a class. The check box group class is a subclass of the component class. Which of the following will produce a value of 22 if x=22.9: Two methods cannot have the same name in Java. The name of the RMI compiler is ___________ When the string objects are compared with ==, the result is true If the… A string object can not be modified after it is created. All methods in an abstract class must be declared abstract. A final class may not have any abstract method. Consider the following class definition.Class Student extends String{}What… Message-Driven beans act as a listener for the Java Message Service API,… A Java monitor must either extend thread class or implement Runnable interface. Which of the following classes are available in the java.lang package? Which of the following methods can be used to change the size of a size()… Which of the following are not keywords? A static class method can be invoked by simply using the name of the method… Frames and applets cannot be used together in the same program. Java is fully object oriented programme. It is an error if a class with one or more abstract methods is not explicitly… The length of a string object 's1' can be obtained using the expression… Throwing an exception always causes program termination. Which of the following control expressions are valid for an if statement? Objects are passed to a method by use of call-by-reference. A panel can not be added to another panel. The keywords reserved but not used in the initial version of Java re: A variable declared inside the for loop control can not be referenced… DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend…