which one is performance wise advantageious from List,Set,Map?
Answer Posted / pkj
List : storing of data is fast but retrieval is slow.
Map : Stroing of data is slow. But retrieval is slow.
Set : Stroing of data is slow. But retrieval is slow.
Depending on the req the collection can be used
Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is a generic type?
FOR EXAMPLE WE R HAVING TWO LIST ELEMENTS ..BOTH LISTS CONTAINS ID,NAME,PLACE ..I NEED TO COMPARE BOTH IDS IN TWO LISTS,IF ID'S R SAME MEANS WE HAVE ADD THE DETAILS(LIKE NAME,PLACE) TO MAP...HOW IS POSSIBLE ?CAN ANY ONE SUGGEST?
What is an empty string in css?
What is the difference between a vector & an array list?
Is 0 true or false in java?
Explain about instanceof operator in java?
What is the purpose of the return statement?
describe synchronization in respect to multithreading? : Java thread
Can we use switch statement with strings?
Can the garbage collection be forced by any means?
Can we catch more than one exception in a single catch block?
What are data types in oop?
What is an example of a conditional statement?
What is immutable in java?
Does java have a compiler?