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 Java does not support multiple inheritances?
Why do we need hashset in java?
What is api data?
What are the escape sequences in java?
what do you understand by synchronization? : Java thread
Can we able to pass objects as an arguments in java?
What are the types of literals?
Can we override constructor in java?
What is == mean?
How java enabled high performance?
What is meant by stack and queue?
What is the use of generics? When was it added to the Java development Kit?
Write an algorithm for quick sort?
What is volatile keyword in java
Explain the difference between hashmap and hashtable in java?