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 the use of isempty in java?
What is the symbol for space?
What is java and their uses?
Explain about varargs in java?
Can a serialized object be transferred via network?
What is meant by the value of a variable?
What is double parsedouble in java?
What is append in java?
What do you know about the garbate collector?
Why do we create public static method in java?
Can we force the garbage collection to run?
What are the advantages of assembly language?
If you are given the name of the function at run time how will you invoke the function?
What is meant by data hiding in java?
How we can run a jar file through command prompt in java?