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 meant by data hiding in java?

723


What is native method in java?

658


What is the difference between choice and list?

690


What best practices should you follow while writing multithreaded code in java?

647


Which collections are thread safe in java?

572






how is final different from finally and finalize in java?

689


Explain how can you debug the Java code?

679


What is method reference?

612


Can a constructor call the constructor of parent class?

627


Why do we create threads in java?

669


Do we need to manually write Copy Constructor?

685


What is the difference between yield() and sleep()?

633


What is the purpose of a default constructor?

672


How do you create a first line indent?

600


Which eclipse is best for java?

614