Created
May 17, 2020 22:59
-
-
Save yenerm/4f7caae8740552871be33981a0453439 to your computer and use it in GitHub Desktop.
explicit cast and can result in runtime exception
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
String str = (String)list.get(1); // needs explicit cast, throws exception |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment