0

Why does printing a reference variable prints D string object if all it does is point to D memory address of D String object

Data Types, Java, Reference variables..

3rd Jul 2018, 8:30 AM
Just_Chuel
1 Réponse
0
Hello, are you referring to Object.toString() method? If yes, it does not show a memory address... https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html#toString()
10th Aug 2018, 8:24 AM
Enrico Menabeni
Enrico Menabeni - avatar