Post

j
j@master_jhop·
@EclipseJavaIDE Error: you have written unclear code that is hard to understand or maintain. Please add code comments.
English
0
0
16
0
Pit
Pit@petroeli2·
@EclipseJavaIDE intelij idea shows that substring(0) is redundant ;)
English
0
0
1
0
Hossein Zolfi
Hossein Zolfi@HosseinZolfi·
@EclipseJavaIDE @java It print true based on openjdk source code but it can be true or false based on jre/jvm implementation. Official documentation doesn't note anything about this.
English
1
0
1
0
ABDULLAH.
ABDULLAH.@Trxby·
@EclipseJavaIDE @java It’s true. I believe Java compiler gives the same reference type for CharSequence and String.
English
0
0
1
0
Alberto Díez
Alberto Díez@DiezRevenga·
@EclipseJavaIDE True. String implements CharSequence. Really you have 2 String instances, and 2 Strings with the same value use the same internal reference.
English
0
0
0
0
Paylaş