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
Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?
What is the declaration statement?
How will you get the platform dependent values like line separator, path separator, etc., ?
Difference between this() and super() in java ?
Explain where variables are created in memory?
os is developed in c no java is more secured then c na why dont the os developed is developed using java
What is hash in java?
Explain the difference between the public, private, final, protected, and default modifiers?
How can we break singleton in java?
What is finally and finalize in java?
What classes of exceptions may be caught by a catch clause in java programming?
What are 3 boolean operators?
What restrictions are placed on method overriding in java programming?
Explain about field hiding in java?
What is consumer interface?