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
What is the main purpose of java?
What is the unit of plancks constant?
Explain different states of a thread in java?
What methods are used in Servlet?Applet communication?
What are bind parameters?
What is the difference between abstract classes and interfaces?
What is the old name of java?
What is structure of java heap? What is perm gen space in heap?
Explain the difference between jdk, jre, and jvm?
How strings are created in java?
Does java trim remove newline?
Can a class have multiple subclasses?
What is exception in java?
How to handle a web browser resize operation?
What is basic syntax?