Answer Posted / hrindows@gmail.com
The Big-O notation depicts the performance of an algorithm as the number of elements in ArrayList. A developer can use Big-O notation to choose the collection implementation. It is based on performance, time, and memory.
For example, ArrayList get(index i) is a method to perform a constant-time operation. It does not depend on the total number of elements available in the list. Therefore, the performance in Big-O notation is O(1).
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What about instanceof operator in java?
What are aggregate functions explain with examples?
extending thread class or implementing runnable interface. Which is better? : Java thread
How do you use compareto method?
When is an object subject to garbage collection?
What is treeset and treemap in java?
What are the object and class classes used for?
What is the default value of float and double datatype in java?
What is byte code and why is it important to java’s use for internet programming?
Can we extend immutable class?
Is hashset ordered java?
If system.exit (0); is written at the end of the try block, will the finally block still execute?
What do you understand by the term polymorphism?
What does isempty () do in java?
how to create multithreaded program? Explain different ways of using thread? : Java thread