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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?

545


What is the map interface in java programming?

591


What is string array?

584


describe method overloading

541


what is anonymous class in java?

552






What is a buffer in computer?

518


Write a function to find out longest palindrome in a given string?

598


Explain enumeration in java?

573


Can we have try without catch block?

647


What is the difference between compiler and jvm?

559


Is empty set an element of empty set?

608


Which object oriented concept is achieved by using overloading and overriding?

561


Why method overriding is used?

543


How to check if a list is sorted in java?

590


how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread

537