allen robin wrote:Hey,First of all,Java always makes a copy of parameters before sending them to methods means the final doesn't mean any difference for the calling code i.e.,
allen robin wrote:
inside the method the variables can not be reassigned.On the other hand, if you reassign any new value within the method the compiler complains immediately.
allen robin wrote:This means that there no complexity in this method.
So,finally its good to use as it makes the code error free and easy.
E Armitage wrote:There is a difefrence between map["0"] and map.
Maps are not indexed so map doesn't really make sense. map["0"] accesses a record in the map whose key is the String "0".