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 is the synonym of string?
What is super keyword in java ?
I have a Arraylist object, it has duplecate values also. Now question is i want delete duplecate data in that objet with out using Set?
How to sort array in descending order in java?
Explain about instanceof operator in java?
What is default switch case? Give example.
What is a boolean used for?
You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain
Which collection does not allow duplicates in java?
I want to persist data of objects for later use. What is the best approach to do so?
What are the differences between path and classpath variables?
What does it mean to be immutable?