March 6, 2012
Final keyword : Sometimes you want instance variables to be modifiable and sometimes not.By using keyword final,we specify that variable is a constant.So we can say if an instance variable is not supposed to be modified,then declare it to be final to prevent modification. If someone attempts to modify the same results in error.Ant attempt to modify [...]
March 4, 2012
ArrayList ArrayList is a class in the core JAVA Library(the API) and easy to use class representing one-dimensional array. ArrayList class extends AbstractList and implements List interface.It is not synchronized i.e. if more than one thread is editing the arraylist concurrently than the changes might not be synchronized implicitly. This is accomplished by synchronizing on [...]