开发者

Two class files created in Apache for 1 Java File

开发者_如何学Python

When i compiled VisaTaxDetailsDAOHibernate java file in tomcat there were two class files created named as 1)VisaTaxDetailsDAOHibernate.class 2)VisaTaxDetailsDAOHibernate$3.class Why two files were created can anyone tell me


The $3 one will be a compiled anonymous inner class.


VisaTaxDetailsDAOHibernate has an anonymous inner class defined in it. Right? (More than one?)

That $3 is the class file of that anonymous inner class. Since you did not give it a name ("anonymous") the compiler gives one.

(If you have an inner class (with name), that would be Outer$Inner.class.)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜