If I have 1000 objects and my requirement is to sort them
quickly, then which collection would you recommend and why?

Answer Posted / sanjay

ArrayList. indexing is easy, count of objects is already known.

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the final field modifier?

548


What are JVM.JRE, J2EE, JNI?

693


What is the size of integer?

588


What is the difference between a loader and a compiler?

526


Java openings 3 - 5 years, Lnt Infotech. requirements - core java, J2ee, struts, hibernate Interview Date:- 19 March 2011 Time:- 9:00 AM to 12:00 Pm Interview Location - L & T Infotech, Manapakkam, Chennai Refererral PS NO:- 291649 (Please mention this when u fill the form only then u will be considered for interview) Documents Required:- Latest Resume, Photograph and last 3 payslips Mail me on vasan2211@gmail.com once u appear for interview

2854






What is an anonymous class in java?

548


Which browsers work with java?

563


What is the purpose of the wait(), notify(), and notifyall() methods in java programming?

580


What does nextint () do in java?

554


What is formatted output?

514


What is advantage of java?

542


Explain yield() method in thread class ?

621


Explain reverse a linked list recursive java solution?

533


What does indexof mean?

536


Can singleton class be inherited in java?

518