What is an abstract class?

Answer Posted / prasviji143@gmail.com

abstract class is an incomplete class which contains incomplete and complete methods.

incomplete methods contains only the declaration and ended with semicolon (; )

To access the incomplete methods we need create a concrete class with the help of extends keyword.

In concrete class there will be method definitions for incomplete methods.

abstract class is known as superclass and concrete class as subclass.


In concrete class we can create the object and we can call the incomplete methods and execute the program.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are synchronized blocks in java?

597


What is array in java?

532


What is remote method invocation (rmi)?

610


Can we create a class inside a class in java?

541


How can an exception be thrown manually by a programmer?

507






What is java util concurrentmodificationexception?

495


How does compareto method work?

522


Explain the difference between string, stringbuffer and stringbuilder in java?

552


What is final, finally, finalize?

594


I want to persist data of objects for later use. What is the best approach to do so?

588


Difference between Linked list and Queue?

602


What is difference between core java and java ee?

466


Which language is java?

538


What is nextint java?

543


What is boolean example?

525