Last active
April 9, 2016 17:37
-
-
Save Krasnyanskiy/80f824c3fbf3364967b94ff3a2f6afd2 to your computer and use it in GitHub Desktop.
-java: array types
This file contains hidden or 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
int[] ints = {1, 2, 3, 4, 5, 6}; | |
Object[] objects = (Object[]) ints; // error! cannot cast int[] to Object[] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Autoboxing does not work here.