list in Java

In Java, a List is an ordered collection of elements which may contain duplicates. It is an interface that extends the Collection interface. 
* Number is a super type of Long, but List\<Number> and ArrayList\<Long> has not relationship. 
* When a list is declared with a raw type, the compiler bypasses generic type checks. As a result, elements of the given list are instances of Object.