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 __ init __ functions?
What about abstract classes in java?
What is java virtual machine and how it is considered in context of java’s platform independent feature?
Differentiate between nested and inner class in java.
what is the difference between process and thread? : Java thread
What do you mean by default constructor in java?
What is t type java?
How would you dynamically allocate memory to an array?
How do you test a method for an exception using junit?
Explain the difference between the public, private, final, protected, and default modifiers?
What do you understand by casting in java language?
What are the advantages of java inner classes?
What is the destroy method?
Is array a class in java?
What is difference between iterator access and index access?