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


Please Help Members By Posting Answers For Below Questions

What is use of map in java?

511


What is Java Annotations?

555


Is a string literal?

521


Which is easier .net or java?

641


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

1458






How do you end a program?

546


How many types of methods are there in java?

525


Explain implementation and how is it different from conversion?

586


What is the final access modifier in java?

612


Describe the process as to how substring() methodology mechanisms in java.

554


What exceptions occur during serialization?

603


Does java trim remove newline?

538


What was java originally called?

505


Can a main method be overloaded?

569


Why is method overloading not possible by changing the return type in java?

586