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

What is singleton class in java and how can we make a class singleton?

1071


What does replaceall do in java?

869


What is mysql driver class name?

1076


Explain the difference between static and dynamic binding in java?

1017


What is bytecode verifier?

878


How to split a string in java?

1066


From the two, which would be easier to write: synchronization code for ten threads or two threads?

999


What is return keyword in java?

1008


Why is singleton not thread safe?

1009


What is threaded programming and when is it used? : Java thread

1015


What do you understand by looping in java? Explain the different types of loops.

997


What are the three parts of a lambda expression?

945


Can java program run without jre?

958


What modifiers are allowed for methods in an interface?

1094


Can we access instance variables within static methods ?

1033