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 do you relate a Interface to a Class? Tell me in
Detail?

Answers were Sorted based on User's Feedback



How do you relate a Interface to a Class? Tell me in Detail?..

Answer / guest

IS-A RELATIONSHIP ?

Is This Answer Correct ?    3 Yes 0 No

How do you relate a Interface to a Class? Tell me in Detail?..

Answer / s.thirunavukarasu

with the help of implementing interface,we can relate a
interface to a class.
for example
interface firstone
{
public void display();
}
class myprm implements firstone
{
public void disply()
{
system.out.println("welcome to java world");
}
}

Is This Answer Correct ?    2 Yes 0 No

How do you relate a Interface to a Class? Tell me in Detail?..

Answer / ranganathkini

A class relates to an interface, in that the class
implements all the methods of the interface.

The implementing class can eiether provide a concrete
implementation of the interface's methods or provide an
abstract implementation.

Is This Answer Correct ?    1 Yes 0 No

How do you relate a Interface to a Class? Tell me in Detail?..

Answer / ravikiran

with implements

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Is there a case when finally will not execute?

0 Answers  


what is singlton class?where it is use in real time senario.

1 Answers   Wipro,


How to retrieve data from database in java using arraylist?

0 Answers  


What is meant by object oriented programming – oop?

0 Answers  


what is the use of abstract class?

3 Answers   Amdocs, Atos Origin, Invictus,


What is oop in java?

0 Answers  


Why string is not a wrapper class?

0 Answers  


What are integer overflows and underflows and how to handle them?

3 Answers   Wipro,


Where are local variables stored?

0 Answers  


What one should take care of, while serializing the object?

0 Answers  


What is the biggest integer?

0 Answers  


Hi buddy, well i got that there is always a default constructor with abstract class. OK. But why not with interface? Thanks in advance.

2 Answers  


Categories