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
Can we call the constructor of a class more than once for an object?
What is a native method in java programming?
Can a method be overloaded based on different return type but same argument type?
What is the use of runnable interface?
why we use merge option in hybernate pls give a ex snippet
What is extension method in java?
Where are global variables stored?
How do you identify independent and dependent variables?
What is the concept of multithreading?
What is the benefit of using enum to declare a constant?
Is java a pure object oriented language?
Write a program based on Java script program.
What is the difference between @before and @beforeclass annotation?
Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?
Which collection is sorted in java?