Created
September 7, 2019 04:17
-
-
Save takahashi-h5/b1e5f32f15394969f4df244afb2cc1d0 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
public class Main1 { | |
public static void main(String[] args) { | |
String a = null; | |
a += ""; | |
System.out.println(a instanceof String); // true | |
System.out.println(a.equals("null")); // true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment