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
Why are parameters used in functions?
what is instanceof operator used in java?
What do you know about the garbate collector?
Does variable declaration allocate memory?
What is json parser in java?
Write a program to print 15 random numbers using foreach of java 8?
Why does abstract class have constructor?
What is the difference between multitasking and multithreading in Java
How can a gui component handle its own events in java programming?
Which oo concept is achieved by using overloading and overriding?
What means public static?
How listener identify that the event came from a particular object?
Can we create our own daemon thread?
Can we clone singleton class in java?
How arrays are stored in memory in java?