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 do you mean by formatting?
How do you declare a variable?
What is the difference between heap memory and stack memory?
What is type parameter in java?
Why is the type for real numbers called double?
What are packages in java?
Can a class have multiple subclasses?
What is a loop java?
What will happen if static modifier is removed from the signature of the main method?
What is an immutable object?
How can you read content from file in java?
What do bitwise operators do?
What is split return?
What are the rules for variable declaration?
What are the principle concepts of oops?