Can you have a constructor in abstract class?

Answer Posted / sumit

But you can create constructor in an abstract class.
and whenever you careate object of class implementing
abstarct class, constructor of te abstract class runs.

Is This Answer Correct ?    108 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is OOP Language?

857


Explain the difference between private, public, package and protected in java?

830


Is it compulsory for a try block to be followed by a catch block in java for exception handling?

809


What is string data?

778


What are the benefits of java?

821


What are the advantages of java over C++?

950


What are green threads in java?

779


What restrictions are placed on method overriding in java programming?

785


When throws keyword is used?

775


can rmi and corba based applications interact ?

871


List down the methods and interfaces of collection class in java.

781


What is linked hashset and its features?

767


Explain differences between collection api and stream api?

877


Define max and min heap, also the search time of heap.

847


Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls

1704