Why generics are used in java?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

What is boolean data type in java?

0 Answers  


What is run-time class and system class? what is their purpose?

1 Answers  


Explain how to convert any java object into byte array.

0 Answers  


Is class is a data type?

0 Answers  


Can a class inherit the constructors of its superclass?

9 Answers   iFlex, Wipro,






I have a sorting issue with a Hashmap. My constraint is that I MUST use the Hashmap and work with existing code. I do a database query and place the results in a Hashmap. When I iterate thru the Hashmap, it loses the original alphabetical sorting done by the database. So, my problem is that I must sort the results coming out of the Hashmap which is then placed into another class.

1 Answers  


What is difference between add() and addelement() in vector?

0 Answers  


What is logical variable?

0 Answers  


Can a class be protected in java?

0 Answers  


What is java string pool?

0 Answers  


How can constructor chaining be done using this keyword?

0 Answers  


What is java lang object?

0 Answers  


Categories