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
How finally used under exception handling?
23. Storage space in java is of the form Stack Queue Heap List 24. What is java code embedded in a web page known as Applets Servlets scriptlets snippets 25. Which of the following attributes are compulsory with an
Tell us something about different types of casting?
What is e in java?
Who found java?
What are serialization and deserialization?
Can you pass by reference in java?
Explain about assignment statement?
How do you implement tree mirroring in java?
What is float in java?
Is string is a class in java?
What are static methods?
What is the difference between applet and application?
Can anonymous class have constructor?
what is a green thread? : Java thread