Answer Posted / suresh
No a interface should not have constructor,
Because, interface will not extends with object class.
if any class extends with object class then atleast one
constructor should be there, if user fail to keep the
constructor the compiler will keep a default constructor
with first statement as super();.
Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
What is array and arraylist in java?
What are design patterns and please explain?
What does \ mean in regex?
Do I need java on my computer?
Is alive and join method in java?
What is singleton class and how can we make a class singleton?
How to disable caching on back button of the browser?
Can long be null in java?
How to implement a multithreaded applet?
What are the library functions in java?
Why can't we override private static methods?
What is boolean flag in java?
Under what conditions is an object’s finalize() method invoked by the garbage collector?
What does java stand for?
Define inheritance?