add notes on Java local classes, + code examples