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

How we can skip finally block of exception even if some exception occurs in the exception block in java?

936


What is a method declaration?

981


Give example to differentiate between call by value and call by reference.

1046


Is java a security risk?

1030


What are the Class Libraries ?

1038


What is a JAR file?

1036


What is java and why do we need it? Explain

1117


What is difference between variable declaration and definition?

961


Where is singleton pattern used?

989


Explain the difference between abstraction and encapsulation.

964


What is difference between hashset and hashmap in java?

997


What are different access specifiers in java? Explain

1110


How is it possible in java programming for two string objects with identical values not to be equal under the == operator?

1017


What is java thread dump, how can we get java thread dump of a program?

990


How many bits is a char?

973