java normal inner class and static inner class

Difference 1:

The object after the instantiation of the ordinary inner class holds the reference of the outer class; the instantiation of the static inner class does not hold the reference of the outer object;

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324999505&siteId=291194637