Is it safe for adding 10,00,000 records/objects to
HashMap?, i.e is it safe to add millions of objects to
HashMap?
Answer Posted / kishore kumar
No,
It may not work in low memory systems.
If you want to show the all the records from the database,
then simply use the concept of pagination.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Can we have 2 main methods in java class?
What is the generic function?
Is java a security risk?
4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (
Explain java coding standards for variables ?
Is it possible to compare various strings with the help of == operator? What are the risks involved?
What does provide mean construction?
Which collections are thread safe in java?
What are the two types of exceptions in java? Which are the differences between them?
Explain the purpose of garbage collection in Java?
what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread
What do you understand by copy constructor in java?
What about main thread in java?
What are heap memory and stack memory and what are memory tables.
what is inner class in java?