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
explain what is transient variable in java?
What are "class access modifiers" in Java?
What are "methods" and "fields"?
String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?
Can we cast any other type to boolean type with type casting?
What is lexicographically smallest string?
What are the Main functions of Java?
Is node a data type in java?
What is derived datatype?
What are the types of arrays in java?
How can I right-justify a string?
What is regex java?
How do you declare a destructor in java?
What is data structure in java?
What are the difference between string, string builder, and string buffer in java?