Java Silver取得を目指して、毎日コツコツ勉強中です。 このnoteでは、学んだことを整理して記録しています。 同じように勉強している方の参考になったらうれしいです! 引き続き、黒本の模擬試験を解いています。 今回の主題はすごくはっとしました!
Most new Java developers quickly learn that they should generally compare Java Strings using String.equals(Object) rather than using ==. This is emphasized and reinforced to new developers repeatedly ...
System.out.println("s eq sobj1 "+s.equals(sobj1)); //content comparison System.out.println("sobj1 eq sobj2 "+sobj1.equals(sobj2)); System.out.println("sobj1 eq sobj3 ...
If you are fortunate enough to be using JDK 7, the newly available Objects class is the obvious (at least to me) choice for implementing the “common” Java object ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する