Can you have a constructor in abstract class?

Answer Posted / ranjan

We can write a method name same as class which is called
constructor in the abstract class , but as a abstract class
can not be instanciated so that method used as a general
method.

but no error would be there...

Is This Answer Correct ?    31 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java used for?

547


What is anagram word?

511


How will you call an Applet using Java Script Function?

534


Why is java so important?

639


What is argument in java?

528






Can an abstract class be a final class?

522


What do you understand by access specifiers in Java?

574


What about main thread in java?

638


Which is bigger float or double java?

512


Can we restart a thread already started in java?

573


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

530


What does a za z0 9 mean?

556


Explain the difference between collection api and stream api in java8?

499


What defines function?

529


Is java based on c?

524