can you create interface instance ?
Answer Posted / ramu
hey uday u r wrong
In your program you are not created obj for interface, you have given anonymous implementation for 'Test' interface and instantiated that anonymous class only but not the interface.
for conformation call getClass() on 't'.(t.getClass())
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can a private method of a superclass be declared within a subclass?
what are the methods in object?
What is a qms manual?
What is a nested class?
What is stringreader?
Is zero a natural number?
What is the difference between access specifiers and access modifiers in java? 16
Can I import same package/class twice?
What are desktop procedures?
What are the types of strings?
How does singleton class work?
Write a program to print 15 random numbers using foreach of java 8?
What is stack example?
What is immutable data?
What is the impact of declaring a method as final?