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 are the files generated after using IDL to java compiler?
What is flush buffer?
How do you implement singleton class?
Explain the scope or life time of class variables or static variables?
what do you mean by stream pipelining in java 8? Explain
Is list ordered in java?
What do you mean by byte code?
What is %d in printf?
What do you mean by order of precedence and associativity?
What are the basics of core java?
What is the immediate superclass of the Dialog class?
what are class,constructor and primitive data types?