Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

What is a "pure virtual" member function?

0 Answers   Amazon,


What is stringbuffer in java?

0 Answers  


what is bytecode ?explain in detail and watz the difference between bytecode and machine code?

6 Answers   Lucent,


Objects or references which of them gets garbage collected?

0 Answers  


How do generics work in java?

0 Answers  






What is the difference between a vector & an array list?

0 Answers   Agilent,


What is Difference between Serializable and Externalizable in Java serialization?

1 Answers   Cognizant, IBM,


Which variables are stored in heap?

0 Answers  


How Applets & Servlets will communicate with each other?

2 Answers  


What is balanced tree in java?

0 Answers  


When the constructor of a class is invoked?

0 Answers  


what is collatration?

0 Answers  






Categories