Synthetic Class in Java

后端 未结 13 1753
广开言路
广开言路 2020-11-29 17:15

What is a synthetic class in Java? Why should it be used? How can I use it?

13条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-29 17:28

    They are created by JVM at run time when they invoke private members of inner class for debugging purpose

    The methods,fields,class created by JVM during run time for its execution purpose are called Synthetic

    http://www.javaworld.com/article/2073578/java-s-synthetic-methods.html

    http://javapapers.com/core-java/java-synthetic-class-method-field/

提交回复
热议问题