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
What is object in java?
What is gc()?
What is singleton class and how can we make a class singleton?
What is the difference between access specifiers and access modifiers in java? 16
Difference between Preemptive scheduling vs. Time slicing?
What is the importance of hashcode() and equals() methods?
What are operators and its types?
What is google full form?
Differentiate between the constructors and methods in java?
What do you understand by private, protected and public?
How a variable is stored in memory?
What is the size of string?
What is java and its types?
What is the benefit of abstract class?
What is this () in java?