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 size of int in java?

536


What is regex java?

550


Can we extend immutable class?

519


How to solve the problem of generating the unique hash keys with hash function?

1448


In java how do we copy objects?

539






How to create a custom exception?

561


Why do we need singleton class?

536


What is an abstract class and what is it’s purpose?

527


What restrictions are placed on method overloading in java programming?

557


What is the functionability stubs and skeletons?

660


What is the current version of java?

524


Explain about narrowing conversion in java?

558


What are classloaders?

589


What is unicode in java?

492


What is a super method?

521