1.

Which of these is not a correct statement?(a) Every class containing abstract method must be declared abstract(b) Abstract class defines only the structure of the class not its implementation(c) Abstract class can be initiated by new operator(d) Abstract class can be inheritedI had been asked this question during an online interview.The query is from Inheritance topic in section Inheritance of Java

Answer»

The CORRECT choice is (c) Abstract class can be initiated by new OPERATOR

To EXPLAIN I WOULD say: Abstract class cannot be directly initiated with new operator, Since abstract class does not contain any definition of implementation it is not possible to CREATE an abstract object.



Discussion

No Comment Found

Related InterviewSolutions