did interface can implementation method ? i know its not
possible but my interviewer said its possible ..but how..?
any one have idea ???

Answer Posted / vinod

Hi Lakshmikant,

by writing anonymous class you are actully implementing an interface

It does not mean that we can have implementation with in an interface.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the differences between c++ and java? Explain

816


Are arrays classes in java?

746


What is the difference between size and length in java?

740


Can a java program have 2 main methods?

790


How do you remove an element from an arraylist in java?

673


What is Applet Stub Interface ?

2171


Why can't we make a class private in java?

783


Is string is a data type in java?

804


What is a concrete classes? Is Java object class is concrete class?

746


What is member in java?

700


How to sort array in descending order in java?

722


Does apple use java?

708


Explain where variables are created in memory?

774


What are the 4 types of research methods?

702


Can we call the run() method instead of start()?

796