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 / suhail

Interface can i have implementation for method by using
class inside the interface this is the only way to have the
implementation...

public interface A{
public class B{
public void m1(){
}
}
}

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by anonymous class?

1088


Difference between comparator and comparable in java?

1158


What is literal example?

1007


What do you mean by thread safe?

1024


Which list is sorted in java?

1083


What is meant by bytecode?

1077


Can we overload run() method in java?

1259


What are the two ways of implementing multi-threading in java?

1571


Can you explain the cs option of java interpreter?

990


What is a memory leak in java?

1126


What is java basic concept?

1088


What is the difference between Array and Hash Table?

1077


What is jee6?

1184


What is comparator in java?

1063


Convert a BST into a DLL and DLL to BST in place.

1156