IN java collections we have both interfaces and classes.
instead of using interfaces why we can't use classes only
like that why we can't use interfaces only. why we need two
things interface and class.
Answer Posted / rajesh r
In a word to achieve Polymorphism
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
Which of the following classes will have more memory allocated?
What is purpose of applet programming?
What are the restrictions imposed by a Security Manager on Applets?.
What are different types of constants?
What is the purpose of static methods and variables?
Explain listiterator and methods in listiterator?
What is jagged array in java?
Can Exception handling we can handle multiple catch blocks?
What is replacefirst in java?
How do you convert bytes to character in java?
Does every java program need a main?
How to create an interface?
Can constructor be static or final?
what is singleton in java?
Can a method be overloaded based on different return type but same argument type?