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 ?
About Question enthuware.ocpjp.v17.2.-3673- :
Moderator: admin
-
- Posts: 1
- Joined: Wed Apr 17, 2024 7:22 pm
- Contact:
-
- Site Admin
- Posts: 10078
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v17.2.3673 :
Kindly write your question in English.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 25 guests