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
When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?
What is the map interface in java programming?
What is string array?
describe method overloading
what is anonymous class in java?
What is a buffer in computer?
Write a function to find out longest palindrome in a given string?
Explain enumeration in java?
Can we have try without catch block?
What is the difference between compiler and jvm?
Is empty set an element of empty set?
Which object oriented concept is achieved by using overloading and overriding?
Why method overriding is used?
How to check if a list is sorted in java?
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