Get flash to fully experience Pearltrees
I have read many articles on Garbage Collection in Java , some of them are too complex to understand and some of them don’t contain enough information required to understand garbage collection in Java . Then I decided to write my own experience as an article or you call tutorial about How Garbage Collection works in Java or what is Garbage collection in Java in simple word which would be easy to understand and have sufficient information to understand how garbage collection works in Java. This article is in continuation of my previous articles How Classpath works in Java and How to write Equals method in java and before moving ahead let's recall few important points about garbage collection in java:
ArrayList in Java is most frequently used collection class after HashMap in Java . Java ArrayList represents an automatic re-sizable array and used in place of array. Since we can not modify size of an array after creating it, we prefer to use ArrayList in Java which re-size itself automatically once it gets full. ArrayList in Java implements List interface and allow null . Java ArrayList also maintains insertion order of elements and allows duplicates opposite to any Set implementation which doesn't allow duplicates.
Introduction The Java 2 platform includes a collections framework . A collection is an object that represents a group of objects (such as the classic Vector class). A collections framework is a unified architecture for representing and manipulating collections, allowing them to be manipulated independently of the details of their representation.
Release Notes Version 10.1.3x February 2007