News

Arraylist is an heterogeneous collection of objects where each object can be indexed individually. while writing an application there could be some scenarios where we have arraylist object filled with ...
The above code will work great. But list object is immutable.Thus you will not be able to add new values to it. In case you try to add new value to list, it will throw UnsupportedOperationException..