You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

InnerFlow.java 306B

12345678910
  1. public class InnerFlow {
  2. static public void main(String[] params) {
  3. final Object o = new Interface() {
  4. public void m() {
  5. o.toString(); //ERR: o not initialized
  6. }};
  7. ((Interface) o).m(); // no exceptions
  8. }
  9. }
  10. interface Interface { void m();}