How do you relate a Interface to a Class? Tell me in
Detail?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / ranganathkini
A class relates to an interface, in that the class
implements all the methods of the interface.
The implementing class can eiether provide a concrete
implementation of the interface's methods or provide an
abstract implementation.
| Is This Answer Correct ? | 1 Yes | 0 No |
What happens when a thread cannot acquire a lock on an object in java programming?
What is the properties class?
The class "Class" is belongs to which package?? a) java.lang b)java.lang.reflect c)java.util d)None
What is a java developer salary?
Different types of modifiers?
Explain where variables are created in memory?
what is business delegate?
what is difference between excute query ()and execute update ()?
which of tha following is not a thread safe class? a) ArrayList b)Vector c)HashTable d)None
What is a stringbuffer?
Is sizeof a keyword in java programming?
why java does not have operator overloading?