why abstract class will have a constructor?

Answer Posted / hari krishna

All the classes including the abstract classes can have
constructors.Abstract class constructors will be called
when its concrete subclass will be instantiated.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by polymorphism?

541


What is protected in java?

532


What is a classloader in java?

538


What are accessor methods in java?

559


What is the use of optional ?

571






What are access specifiers in java ?

590


What is arraylist e?

559


What are the data types supported by java? What is autoboxing and unboxing?

551


How do you create immutable object in java?

542


What mechanism does java use for memory management?

497


How do you make a thread in java?

635


How do you compare two objects?

524


Difference between a process and a program?

619


What is an image buffer?

542


What is the difference between an inner class and a sub-class?

510