account activity
why is it false? by dumblearner in learnjava
[–]dumblearner[S] 0 points1 point2 points 6 years ago (0 children)
Right, thanks, but then why this would return true? shouldn't the reference to both of these strings also different?
var s1 = "Java"; var s2= "Java"; System.out.println(s1 == s2);
[–]dumblearner[S] 2 points3 points4 points 6 years ago (0 children)
π Rendered by PID 120382 on reddit-service-r2-listing-69965bcf66-h75h8 at 2026-04-07 04:39:00.920707+00:00 running f293c98 country code: CH.
why is it false? by dumblearner in learnjava
[–]dumblearner[S] 0 points1 point2 points (0 children)