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


INTERVIEW QUESTIONS J2EE JAVA DETAILS
Question :
What are abstract classes, abstract methods?
Category Java Interview Questions
Rating (2.9) By 10 users
Added on 10/13/2004
Views 1449
Rate it!
Answers:

Simply speaking a class or a method qualified with "abstract" keyword is an abstract class or abstract method. You create an abstract class when you want to manipulate a
set of classes through a common interface. All derived-class methods that match the signature of the base-class declaration will be called using the dynamic binding
mechanism. An abstract method is an incomplete method. It has only a declaration and no method body. Here is the syntax for an abstract method declaration: abstract
void f();



Answers:
Simply speaking a class or a method qualified with "abstract" keyword is an abstract class or abstract method. You create an abstract class when you want to manipulate a
set of classes through a common interface. All derived-class methods that match the signature of the base-class declaration will be called using the dynamic binding
mechanism. An abstract method is an incomplete method. It has only a declaration and no method body. Here is the syntax for an abstract method declaration: abstract
void f();



Posted by: laxman    

Contact laxman Contact laxman

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 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
    How many different types of JDBC drivers are present? Discuss them.
    View Answer
    What does the keyword "synchronize" mean in java. When do you use it? What are the disadvantages of synchronization?
    View Answer
    What are native methods? How do you use them?
    View Answer
    What is RMI?
    View Answer
    What is JDBC? Describe the steps needed to execute a SQL query using JDBC.
    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/453/default.asp?cachecommand=bypass


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

    0.88
    Cache = 0.03125 Seconds