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
What is the size of int in 64-bit jvm?
Is string a wrapper class?
Can constructor be protected in java?
how to create constants in java?
why java uses class level type casting ?
What is a method declaration?
What are the different access modifiers available in java?
Which is faster string or stringbuilder?
What package is math in java?
What is the difference between serializable and externalizable interfaces?
Is integer immutable in java?
Can inner class be public in java?
What is java autoboxing?
What is a singleton factory?
What is the main use of java?