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 data object example?

0 Answers  


What are the 3 types of loops in java?

0 Answers  


What is the use of http-tunneling in rmi?

0 Answers  


What is the final method?

0 Answers  


Why java is said to be pass-by-value ?

0 Answers  






Explain about fail safe iterators in java?

0 Answers  


What is a boolean expression in java?

0 Answers  


How do you sort arraylist in descending order?

0 Answers  


What is nullpointerexception?

0 Answers  


What are the limitations for static method?

3 Answers   Greenwood,


Given a singly linked list, determine whether it contains a loop or not without using temporary space?

0 Answers   Global Logic,


Print Vertical traversal of a Binary Tree.

0 Answers   Amazon,


Categories