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 do negative exponents mean?
which is advanced deep technology in java launched by the sun microsystem??? The answer is very logical If u need correct answer mail me at priya_gupta@gmail.com
Is null a string or object in java?
How do you override a method?
Difference between static synchronization vs. Instance synchronization?
How to implement Singleton
write a class to input 2 points by the user & check the line maked by the points is horizontal,vertical or rectangle?
what is purpose of writting public static void main(Strind arg[]) in java..?
What are the differences between graph and tree?
What do you understand by garbage collection in Java? Can it be forced to run?
what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????
0 Answers HCL, SAP Labs, Vital Soft,
what is the Diff. between Access Specifiers and Access Modifiers?
39 Answers BMC, Cyber Shot, Infosys, VTS, Wipro,