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 |
In treeset we add same object ...what will be the out put
Differentiate between a class and an object.
What function extracts specified characters from a string?
What is the benefit of abstract class?
What design pattern you have used in your project? I answered Factory pattern, how it is implemented? What are its advantage? Do know about Abstract Factory?
Distinguish method overloading and overriding
How to retrieve data from database in java using arraylist?
What is a java lambda expression?
What is serialVersionUID and what is its need?
Explain different forms of polymorphism?
what is mutability?which one is mutable String or StringBuffer?and why?give examples of each which shows the mutability of each String or StringBuffer
What is core java called?