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?

Answers were Sorted based on User's Feedback



How a class can implement an interface?..

Answer / debapriya patra

By using the "implements" clause

Is This Answer Correct ?    7 Yes 1 No

How a class can implement an interface?..

Answer / ravikiran

with implements keyword

Is This Answer Correct ?    4 Yes 0 No

How a class can implement an interface?..

Answer / asrinivas rao

In java a class can implement interface using "implemnts"
keyword.the methods defined in the interface need to be
implemented in the class which implments the respective
interface,otherwise the class becomes has an Abstract class.

Is This Answer Correct ?    3 Yes 0 No

How a class can implement an interface?..

Answer / ranganathkini

A class can implement an interface by using the "implements"
clause followed by a list of interface names that it
implements. Then the class needs to implement the
interface's methods within its class body.

Is This Answer Correct ?    2 Yes 1 No

How a class can implement an interface?..

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

More Core Java Interview Questions

Can a Byte object be cast to a double value?

3 Answers   KO,


How to deprecate a method? Show it with proper example. Plz give the answer of this.Thanx in advance. mail me: tanzeem.akhtar@gmail.com

2 Answers  


What is the difference between array and arraylist? what is the difference between arraylist and linkedlist?

8 Answers   EDS, Matrix,


Can we have any other return type than void for main method?

0 Answers  


How do you escape json?

0 Answers  


Is void a return type?

0 Answers  


What is the basically use of finally while we know it is always executed but why?

5 Answers   Oracle, TCS,


Hi can u pls tell me what is the use of marker interface. Iknow what is marker interface but what ability will the object get by implementing this.

3 Answers   CGI,


What is the difference between processes and threads?

0 Answers  


why using interface interface ?

0 Answers  


What are the three parts of a lambda expression?

0 Answers  


Which method is used to find that the object is exited or not?

2 Answers  


Categories