Question:
How to define an Interface?
Answer:
In Java Interface defines the methods but does not implement them. Interface can include constants. A class that implements the interfaces is bound to implement all the methods defined in Interface. Source: CoolInterview.com
interface contains abstract methods only.It does not contain the body of the methods.It definitely override by the class which implement that method...... Source: CoolInterview.com
Answered by: jaivasanth | Date: 9/7/2009
| Contact jaivasanth
Interface is syntatically similar to classes. Its variables and methods are declared without any defination(body). Source: CoolInterview.com
Answered by: prativa lenka | Date: 9/22/2009
| Contact prativa lenka
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|