Several of us might be familiar with the clear () API in Java collections framework. In this post, let’s discuss what is the purpose of this clear() API? What is the performance impact of using this API? What happens under the JVM when this API is invoked?
Continue reading “Clear details on Java collection ‘Clear()’ API”