Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 void data type?

921


What does .equals do in java?

1007


Explain about wait() method?

979


How do you remove all elements from an arraylist in java?

947


What does percent mean in java?

966


Can we instantiate interface in java?

1089


How many ways can you break a singleton class in java?

915


What is the r character?

969


What is a flag and how does it work?

937


What is type inference in java8?

976


What is difference between == equals () and compareto () method?

981


What is better - 'bit-shift a value' or 'multiply by 2'?

1119


What is the role of garbage collector in java?

901


What is hasnext in java?

970


How does indexof work?

893