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
How many bits is a boolean?
Can we override tostring method in java?
Why is java so popular?
What is the impact of declaring a method as final?
Write a java program to find the route that connects between Red and Green Cells. General Rules for traversal 1. You can traverse from one cell to another vertically, horizontally or diagonally. 2. You cannot traverse through Black cells. 3. There should be only one Red and Green cell and at least one of each should be present. Otherwise the array is invalid. 4. You cannot revisit a cell that you have already traversed. 5. The maze need not be in the same as given in the above example
A person says that he compiled a java class successfully without even having a main method in it? Is it possible?
Why java strings are immutable in nature?
Can we declare a class as abstract without having any abstract method?
Can we override static methods in java?
What is null statement?
What is an 8 bit word?
What makes a function well defined?
What is a default constructor and also define copy contrucyor?
What are the concepts of 'OOPS'?
how to open and edit XML file in Weblogic???