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 is skeleton and stub? What is the purpose of those?
how is final different from finally and finalize in java?
What is ellipsis in java?
What is charat ()?
What is use of super keyword in java?
What is lambda expression in java?
What do you mean by platform independence of Java?
What are exceptions
What is structure of java heap? What is perm gen space in heap?
What is the use of singleton?
What is the symbol for line break?
What do you mean by object?
What restrictions are placed on method overloading?
Why packages are used?
How do you ensure that n threads can access n resources without deadlock?