"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
foo f1, f2, f3 = new foo();
SCJP 1.6 98%
"Successful People Don't Plan Results,They Just Plan Proper Beginings.Right Result Always Follow Right Begining".
Wouter Oet wrote:Btw it can be done in 2 lines:
Test a,b, c;
a = b = c = new Test();
Then all 3 references will reference to the same object.