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 does 0 mean in boolean?
How static variable work in java?
How are variables stored?
What is the function of static in java?
What does isempty () do in java?
Why is java called the platform independent programming language?
what is object-oriented programming in java?
Implement two stacks using a single array.
What is the map interface in java programming?
What are the types of web technologies?
What is return data type?
What is the default execution method in java?
Which variables are stored in heap?
What is definition and declaration?
what is thread? : Java thread