Tuesday, November 29, 2011

When you declare a method as abstract, can other nonabstract methods access it?

Yes, other nonabstract methods can access a method that you declare as abstract.:No, Abstract method has only definition no implementation so other methods cannot access it until and unless we provide the body in the sub class.:Yes , non abstract method can access abstract method , but this abstract method will be implemented in its subclass and the same will be invoked from the non abstarct method of abstract super class. if not implemented the subclass must also be an abstract class. so doesn&
Category:Core Java Interview Questions

No comments:

Post a Comment