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


Please Help Members By Posting Answers For Below Questions

Write a program to print all permutations of string?

682


How the metacharacters are different from the ordinary characters?

571


What is difference between synchronize and concurrent collection in java?

526


What is difference between identifier and variable?

477


How many bytes is a unicode character?

512






What is byte value?

559


What is the difference between call by reference and call by pointer?

507


Is alive in java?

512


What is size_t?

510


What is the use of StringTokenizer class?

615


What is a generic data type?

574


What is parameter example?

550


What is sizeof in java?

559


Explain the key functions of data binding?

589


what is thread? : Java thread

561