Created
December 4, 2011 10:29
-
-
Save draftcode/1429833 to your computer and use it in GitHub Desktop.
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
| class Test { | |
| public static void main(String[] args) { | |
| Object[] array = new String[10]; | |
| Object o = array[0]; // OK | |
| array[1] = new Integer(9); // Throw an ArrayStoreException. | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment