int i = 10 ; // line 1
i = ++i ; // line 2
i = i++ ; // line 3
System . out . println ( i ); // line 4
Originally posted by Robert Elbourn:
so why isn't c3 elligable for garbage collection ?
c3= c1.go(c2);
c1.go(c2) returns null
so isn't that the same as
c3 = null ?
Originally posted by Jan Nowak:
I am confused about this code:
Here I thought that there will be exception as well because of cast added by the compiler but it is ok. Can anyone please explain me this?