As a result, at compile time, the compiler generates anotherunchecked warning at the add statement. The compileris unable to determine if the variable l refers to aList type or aList type (and another heap pollutionsituation occurs). However, the compiler does not generate awarning or error at the get statement. This statementis valid; it is calling the List.getmethod to retrieve a String object. Instead, atruntime, the get statement throws aClassCastException.