I saw this in the Marcus Green
test:
Which of the following statements about this code are true?
I thought this would give an error because of the curly braces in for the anonymous class declaration. I did indeed test the code, and it works, but it also works when there is no curly braces. I have to say this is the first time I've seen an anonymous class written with curly braces, and am not sure what teh rule is, and why it works both ways. Can somebody tell me what is going on?
Damn, can't get this format right.
[ May 08, 2003: Message edited by: Wilson Mui ]