I have this code sample:
This code prints a, c and b as the output. I understand most of it but someone please explain to me how the b is output. How is the code s1 = sM1("b"); executed and why is it executed last?
My initial impression was that it will be a compiler error because there is a semi-colon after the static
String s1 = sM1("a"); statement and the code between the following { } is not part of the static initialzation. can someone explain please.
[ EJFH: Added CODE tags. ]
[ July 29, 2005: Message edited by: Ernest Friedman-Hill ]