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 |
Discuss different types of errors that generally occur while programming.
What is threaded programming and when is it used? : Java thread
Explain java coding standards for classes or java coding conventions for classes?
we know that every java prog must follows OOPS Principles. Anybody can answer, HOW THE FOLLOWING PROGRAM FOLLOWS OOPS CONCEPTS i.e, Inheritance,Polymarphism,Encapsulation? class a{ public static void main(String args[]){ System.out.println("Hello World"); } }
What is arguments in java?
What are the methods available in a class?
Explain about static imports in java?
Is &&= a valid Java operator?
What is getclass () getname () in java?
Explain treeset?
How do you check if an arraylist is not empty?
What is string in java?