class GfG { public static void main(String args[]) { String s1 = new String("Hello"); String s2 = new String("Hello"); if (s1 == s2) System.out.println("Equal"); else System.out.println("Not equal"); } }
Not registered? Create an account
Forgot Password?
Already a registered user? Login