CoolInterview.com - World's Largest Collection of Interview Questions
Send Free SMS
 Interview Questions  
 Our Services  


INTERVIEW QUESTIONS J2EE JAVA DETAILS
Question :
What are interfaces?
Category Java Interview Questions
Rating (2.9) By 8 users
Added on 10/13/2004
Views 1276
Rate it!
Answers:

Interfaces provide more sophisticated ways to organize and control the objects in your system. The interface keyword takes the abstract concept one step further. You could
think of it as a "pure" abstract class. It allows the creator to establish the form for a class: method names, argument lists, and return types, but no method bodies. An
interface can also contain fields, but The interface keyword takes the abstract concept one step further. You could think of it as a "pure" abstract class. It allows the creator
to establish the form for a class: method names, argument lists, and return types, but no method bodies. An interface can also contain fields, but An interface says: "This is
what all classes that implement this particular interface will look like." Thus, any code that uses a particular interface knows what methods might be called for that interface,
and that?s all. So the interface is used to establish a "protocol" between classes. (Some objectoriented programming languages have a keyword called protocolto do the
same thing.)



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.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification  Enter the above shown code:*
    Inform me about updated answers to this question

       
    Related Questions
    View Answer
    How can you achieve Multiple Inheritance in Java?
    View Answer
    What is the difference between StringBuffer and String class?
    View Answer
    Describe, in general, how java's garbage collector works?
    View Answer
    What's the difference between == and equals method?
    View Answer
    What are abstract classes, abstract methods?
    View Answer
    How can you force all derived classes to implement a method present in the base class?
    View Answer
    What is the difference between an Applet and an Application?
    View Answer
    Java says "write once, run anywhere". What are some ways this isn't quite true?
    View Answer
    Describe java's security model.
    View Answer
    What is the difference between a Vector and an Array. Discuss the advantages and disadvantages of both?
    View Answer

    Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.

    Notify me when better answer is posted!
    Email:

    View ALL Java Interview Questions

    User Options
    Sponsored Links


    Copyright ©2003-2010 CoolInterview.com, All Rights Reserved.
    Privacy Policy | Terms and Conditions
    Page URL: http://www.coolinterview.com/interview/458/default.asp?cachecommand=bypass


    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Free SMS | Dedicated Servers | Joke of the Day

    1.91
    Cache = 0.015625 Seconds