To be honest, despite the two
SCJP certificates I have, I didn't think it was legal either. I thought it would be seen as an empty statement, which is not allowed outside methods / constructors / static blocks / initializer blocks, let alone outside classes. Apparently it isn't in this case.