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
When is an object subject to garbage collection?
Explain purpose of sleep() method in java?
What is the use of System class?
What is a java applet? What is an interface?
What is exception in java?
What is the size of an array?
Does substring create a new object?
Is a class subclass of itself?
Is java programming easy?
What do you mean by platform independence? What is an interface?
What is finally block?
Which method cannot be overridden in java?
Why does java not support operator overloading?
What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?
Explain about transient variables in java?