Chandra shekar M wrote:
This is really interesting, it seems that declaring list as List<
String> will cause method getInstance(int) to create ArrayList for String objects, and declaring it as List<BigDecimal> will do this list for BigDecimals (in runtime both of them are just Lists of Objects with proper casting added to methods operating on those elements). Anybody could clarify what happens here?