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
How do you print array in java?
What are the advantages of exception handling?
Which java collection does not allow null?
What are the differences between getting and load method?
Can we override compareto method?
How will you reverse a singly-link list?
What does next mean in java?
How can I debug the Java security exceptions and AccessControlExceptions?
What are predefined functions?
How to instantiate member inner class?
What is wrapper class html?
What are aggregate functions explain with examples?
What is java virtual machine and how it is considered in context of java’s platform independent feature?
What is the file type?
What modifiers may be used with a top-level class?