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 local declaration?
How many types of array are there?
Why hashset is used in java?
How do you define a method?
Why is stringbuffer called mutable?
How does indexof work?
What is valid keyword in java?
What is the base class of all classes?
What is the main purpose of java?
What is the largest data type in java?
What is structure of java heap? What is perm gen space in heap?
Enlist few advantages of inheritance?
What is the difference between serial and throughput garbage collector?
Can a class be private in java?
What is the difference between static class and normal class?