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
How do you add an element to a set in java?
Can we sort array in java?
What is time complexity algorithm?
Can a function return a function?
What is the purpose of garbage collection in java, and when is it used?
You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain
Explain treeset?
How do I write a self declaration?
What are the advantages of functions?
How to solve the problem of generating the unique hash keys with hash function?
Can we override constructor?
Why do we use regex?
Explain different forms of polymorphism?
What is static import?
Are strings immutable in java?