what is abstract method with example?

Answer Posted / syamsunder

Abstract method does not contain method body it contains only method header so we can say this is an in complete method.If a class contains a abstract method declare the class as a abstract and implementation can provides method body to all the abstract methods and also we can't create an object to abstract class

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is constructor chaining and how is it achieved in java?

566


What are the actions that can occur when a thread enters blocked state?

576


What is the difference between overriding & overloading?

562


Explain the scope of a variable.

627


Can a constructor be made final?

660






Explain throw keyword in java?

609


Is this valid in java ? Can we instantiate interface in java?

544


What is complexity and its types?

520


What is a parameter in java?

544


What are the differences between getting and load method?

541


Why do we use regex?

555


Can we declare a static variable inside a method?

526


What is core java used for?

507


What is difference between jdk,jre and jvm?

563


Difference between overriding and overloading in java?

575