Java: limit to nest classes?

Posted by HH on Stack Overflow See other posts from Stack Overflow or by HH
Published on 2010-05-02T08:35:48Z Indexed on 2010/05/02 8:37 UTC
Read the original article Hit count: 182

A very poor style to code but sometimes unavoidable. It is an extreme example. So

  1. is there some limit for nesting classes?
  2. are they equivalent?
  3. how do you deal with such situations? Create library?

Code

new FileObject().new Format().new Words().new Some().new Continue someThing;

((((new FileObject()).new Format()).new Words()).new Some()).new Continue someThing;

© Stack Overflow or respective owner

Related posts about java

Related posts about nested-class