MCQOPTIONS
Bookmark
Saved Bookmarks
→
Java
→
Builtin Exceptions in Java
→
What is the worst case complexity of accessing an..
1.
What is the worst case complexity of accessing an element in ArrayList?
A.
O(n)
B.
O(1)
C.
O(nlogn)
D.
O(2)
Answer» C. O(nlogn)
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
When an array is passed to a method, will the content of the array undergo changes with the actions carried within the function?
What is the worst case complexity of accessing an element in ArrayList?
Which of the below is not an implementation of List interface?
Which class provides thread safe implementation of List?
What is the difference between length() and size() of ArrayList?
How to remove duplicates from List?
How can we remove an object from ArrayList?
WHEN_AN_ARRAY_IS_PASSED_TO_A_METHOD,_WILL_THE_CONTENT_OF_THE_ARRAY_UNDERGO_CHANGES_WITH_THE_ACTIONS_CARRIED_WITHIN_THE_FUNCTION??$
How is Arrays.asList() different than the standard way of initialising List?
When two threads access the same ArrayList object what is the outcome of the program?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply