When should I use abstract classes and when should I use
interfaces?
Answer Posted / ankit
if u r required more than 1 class in ur prog then use
interface because u cant extends 2 class in ur prog ...to
use 2 class in ur prog u can implement 1 interface and
extends 1 class
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is the use of beaninfo?
What are the methods available in a class?
What is static method with example?
What is the function of compareto in java?
How can you say java is object oriented?
What is java objectoutputstream?
Why method overriding is used?
Why for each loop is used?
How will you print number in reverse (descending) order in BST.
What is the difference between an object-oriented programming language and object-based programming language?
What is the instance of an object?
Can Exception handling we can handle multiple catch blocks?
Can one thread block the other thread?
What does sizeof return?
Where is stringbuffer stored?