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 does opcode mean?
What is the difference between iterator and enumeration ?
How does compareto work in java?
What is void keyword?
What does the “static” keyword mean?
What is multiple inheritance? Is it supported by java?
What is toarray method in java?
Can a static block throw exception?
Can we have a method name same as class name in java?
What modifiers may be used with an inner class that is a member of an outer class in java programming?
enlist some features of jdk.
Write a code to create a trigger to call a stored procedure
What are basic data types?
What is parsing in java?
What is the advantage of OOP in java?