1.

Abstract class can’t be final in java.(a) True(b) FalseThe question was posed to me in an international level competition.My doubt is from Abstract Class topic in division Classes of Object Oriented Programming

Answer»

Right answer is (a) True

Easy EXPLANATION - If an abstract CLASS is made FINAL in java, it will stop the abstract class from being extended. And if the class is not getting extended, there won’t be ANOTHER class to IMPLEMENT the virtual functions. Due to this contradicting fact, it can’t be final in java.



Discussion

No Comment Found

Related InterviewSolutions