-
-
Save darrenbkl/34f91ecc0548357ea07874fc4c413c6b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<Number> numList = new ArrayList<Number>(); // OK | |
List<Number> intList = new ArrayList<Integer>(); // Compilation Error: incompatible types | |
List<Number> objList = new ArrayList<Object>(); // Compilation Error: incompatible types |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment