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
Does constructor be static?
What is an exception? difference between Checked and Unchecked exception in Java
Is array size fixed in java?
How will you add panel to a frame?
What is difference between calling start() and run() method of thread?
Hi i am creating desktop application in that i want calling to mobile number. i have java telephone api (JTAPI) but i dont understand how it configure & use plese help me
Explain the transient field modifier?
Is main a keyword in java?
Why we use methods in java?
Can we override protected method in java?
What is procedure overloading?
How list contains works in java?
What is java oops?
What is the difference between C++ and Java and your preferences?
Can we sort arraylist in java?