watz the difference between abstract class and interface?
Which one u ill choose as a designer?
Answer / ajay roy
Abstract Class is the one which contains atleast one
abstract method and other method may not be essentially
abstract. However, interface always have only method
signature in it. We can not have methods with
implementation in interface unlice abstract class.
When designer wants to use common property of a system then
he should go with abstract method. Because in abstract
method he can have implementation of common properties
along with signature of other method which can be
implemented as per need.
| Is This Answer Correct ? | 5 Yes | 1 No |
Difference between concurrent hashmap and hashtable and collections
Why we use protected in java?
Explain polymorphism citing an example.
List down the methods and interfaces of collection class in java.
What is treeset and treemap in java?
what is mutability?which one is mutable String or StringBuffer?and why?give examples of each which shows the mutability of each String or StringBuffer
How to find the largest value from the given array.
How do you write a good declaration?
The class "Class" is belongs to which package?? a) java.lang b)java.lang.reflect c)java.util d)None
Can you access the private method from outside the class?
What is a war file?
What is the right data type to represent a price in java?