Page 1 of 1

About Question enthuware.ocpjp.v17.2.-3673- :

Posted: Wed Apr 17, 2024 7:25 pm
by fgomezt
Given: String s1 = "Hello World"; String s2 = """ Hello World"""; System.out.println((s1 == s2)+" "+s1.equals(s2)); What is the result?


por que este ejercicio debería dar true -true, si uno compara referencia y el otro contenido ?

Re: About Question enthuware.ocpjp.v17.2.3673 :

Posted: Thu Apr 18, 2024 8:42 am
by admin
Kindly write your question in English.