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
What are the actions that can occur when a thread enters blocked state?
Can we have 2 main methods in java class?
What is the difference between reader/writer and inputstream/output stream?
Explain the available thread states in a high-level?
How do you define a variable?
What is a conditional equation?
How do you reverse a string in java without using string buffer?
What are the differences between the constructors and methods?
How are variables stored in memory?
Describe what happens when an object is created in java ?
Why main() method is public, static and void in java ?
What all access modifiers are allowed for top class ?
Write a program to check string is palindrome without using loop?
What class allows you to read objects directly from a stream?
What is thread count in java?