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
Tell some latest versions in JAVA related areas?
What is the purpose class.forname method?
What is the arraylist in java?
How does linkedlist work in java?
What are the basics of core java?
What do you mean by multithreaded program?
Differece between class and generic class?
What is the indent key?
What happens when I use / and % with a negative numerator?
Who developed java?
How do you do math powers in java?
Why does java have two ways to create child threads? Which way is better?
Is 0 an even number?
Can we have try block without catch block?
Is java a digit method?