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 use of map in java?
What is Java Annotations?
Is a string literal?
Which is easier .net or java?
hi am an engineering student and my next plan is for ms in either in us or australia i got my passport but i dont know anything bout visa can u give brief idea 1)How to get prepared for visa and 2)How to apply for top universities and 3)How to pay the fee and so on These all are basic questions plz give me a clear idea
How do you end a program?
How many types of methods are there in java?
Explain implementation and how is it different from conversion?
What is the final access modifier in java?
Describe the process as to how substring() methodology mechanisms in java.
What exceptions occur during serialization?
Does java trim remove newline?
What was java originally called?
Can a main method be overloaded?
Why is method overloading not possible by changing the return type in java?