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 subsequence of a string?
Explain the importance of throws keyword in java?
Can memory leak in java?
define polymorphism in java
what are different ways in which a thread can enter the waiting state? : Java thread
Is binary a low level language?
What is the difference between hashmap and hashtable in java?
Define locale.
What is null statement?
Explain the difference between the public, private, final, protected, and default modifiers?
What is private public protected in java?
What is the properties class?
How to compare two strings in java program?
Can we make a constructor final?
What is the difference between compiler and jvm?