Explain Big-O notation with an example
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 |
How to display all the prime numbers between 1 and 100
what is the purpose of the final in the try-catch-final
What is type safety in java?
Explain jvm, jre, and jdk?
What are abstract classes and anonymous classes?
0 Answers Flextronics, Thomson Reuters, Virtusa,
what is class.forname() and how it will be useful ?
How do you stop a thread in java?
What is the purpose of using javap?
What is a jagged array in java?
What is casting?
Every class extends object but why it is not possible for every object to invoke clone() method. ideally protected methods should be accessible from sub classes. isn't it?
How define set in java?