When should I use abstract classes and when should I use
interfaces?
Answers were Sorted based on User's Feedback
Answer / ved.b.tripathi
Interface : when you about to maintain the standard through
out the application then,blindly go with the interface.
Abstract : when you customize the behavior but still want to
maintain some standard then use abstract,because in abstract
you can have non abstract method that will be use by every
class that extend this abstract method and that class also
have to give the body of abstract methods(standard).
Is This Answer Correct ? | 15 Yes | 2 No |
What is the difference between the size and capacity of a vector?
How many bytes are a float?
Java openings 3 - 5 years, Lnt Infotech. requirements - core java, J2ee, struts, hibernate Interview Date:- 19 March 2011 Time:- 9:00 AM to 12:00 Pm Interview Location - L & T Infotech, Manapakkam, Chennai Refererral PS NO:- 291649 (Please mention this when u fill the form only then u will be considered for interview) Documents Required:- Latest Resume, Photograph and last 3 payslips Mail me on vasan2211@gmail.com once u appear for interview
How is Object Oriented Programming different from Procedure Oriented Programming?
How to handle a web browser resize operation?
What are the approaches that you will follow for making a program very efficient?
What is variable and example?
What is a stringbuilder?
What are inner and anonymous class?
Explain the difference between private, public, package and protected in java?
Explain polymorphism citing an example.
What is the purpose of the main method?