can you create interface instance ?
Answer Posted / devir
No,Uday is wrong.
He has created an anonymous inner class Test with the same
name as interface Test.It doesn't depend on the interface Test.
If an instance for interface Test has to be created ,he
sholud have implement interface Test such as
class Main implements Test{
}
| Is This Answer Correct ? | 17 Yes | 2 No |
Post New Answer View All Answers
How to calculate the length of a singly linked list in java?
Explain about the interpreter in java?
Can a class extend more than one class?
What is collection sort in java?
What are generic methods?
Can we split string with in java?
What is arraylist e?
Difference between start() and run() method of thread class?
What is jit compiler ?
Explain the private protected method modifier?
What is mean by exception?
How many types of methods are there?
What are the differences between path and classpath variables?
What are green threads in java?
What are the topics in advance java?