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...

How a class can implement an interface?

Answer Posted / mayuri wankhade

without using implements clause it is also possible to use
interface by creating object of an interface in the class
containing main method like :

nameOfInterface Obj = new nameOfInterface()
{
implement a method declared in an interface
};
Obj.MethodName();

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to restrict a member of a class from inheriting by its sub classes?

1350


What is the difference between member variables initialization and assignment in a constructor?

1272


Can we have any code between try and catch blocks?

988


Why multiple inheritance is not supported by java?

979


How many bits is a double?

1008


What is anagram in java?

932


I want to persist data of objects for later use. What is the best approach to do so?

1064


What are the different approaches to implement a function to generate a random number?

1059


Which method must be implemented by all threads?

1265


What is the purpose of lambda expressions?

1058


Explain creating threads by implementing runnable class?

1169


What are thread groups?

1002


What are the different types of inheritance in java?

991


What is output buffer?

1052


What is use of static method?

1054