Created
April 9, 2026 09:48
-
-
Save velotiotech/7797df21ff678a39131d123a7720ef78 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
| public static void main(String[] args) { | |
| String s1 = "Hello"; | |
| String s2 = new String("Hello"); | |
| System.out.println(s1 == s2); | |
| System.out.println(s1.equals(s2)); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment