can you create interface instance ?
Answer Posted / neeraj
if we implements a class with an Interface then it will
compile time error i.e U must give the body of a method in
your class , so it is an anonymous class.We cannot create
Instance of an Interface.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you identify if jvm is 32-bit or 64-bit from java program?
Explain heap sort?
What is the final access modifier in java?
What is argument in java?
what is an objects lock and which objects have locks? : Java thread
What is the difference between exception and error in java?
Can constructor be static or final?
What makes a function well defined?
Is alive in java?
Can we have multiple public classes in a java source file?
How do I get the | symbol on my keyboard?
What is consumer in java?
How many types of constructors are used in java?
How do I write a self declaration?
What is arguments in java?