Created
April 29, 2020 14:42
-
-
Save singhrahuldps/425653e7645490a8d909127e7d909303 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
| Integer integer = null; | |
| System.out.println(integer); | |
| // Integer objects are immutable and should be | |
| // initialized using the valueOf method | |
| integer = Integer.valueOf(10); | |
| System.out.println(integer); | |
| System.out.println(integer.equals(11)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment