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 difference between static class and normal class?

769


What is the Difference between Final Class && Abstract Class?

865


What is private public protected in java?

824


What are singleton services?

693


What are the limitations of procedural programming approach?

783


Is intellij better than eclipse?

792


What is the java virtual machine?

868


What is field name?

790


How do you sing an Applet ?

2257


Explain inheritance in java?

798


What is the java idl system?

806


List any five features of java?

808


What is return keyword in java?

837


What is the difference between serial and throughput garbage collector?

813


List the features of java programming language.

795