bookmark

Nested Classes (The Java™ Tutorials > Learning the Java Language > Classes and Objects)


Description

Serialization of inner classes, including local and anonymous classes, is strongly discouraged. When the Java compiler compiles certain constructs, such as inner classes, it creates synthetic constructs; these are classes, methods, fields, and other constructs that do not have a corresponding construct in the source code. Synthetic constructs enable Java compilers to implement new Java language features without changes to the JVM. However, synthetic constructs can vary among different Java compiler implementations

Preview

Tags

Users

  • @jil

Comments and Reviews