Hi JavaRanch,
I have came across a code and below are my queries based on the output of the program
1. what does 1st two system.out.println() means?
2. If
String class is immutable then how
is possible ?
3. How int value didn't get changed when it has been assigned with
?
Output of the program
--------------------------
value of i is com.sanujava.Project@1db9742
value of s is com.sanujava.Project@106d69c
*************
+++++++++++++++
value of d.i:70
value of d.s:seed
10
sid