由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - 奇怪!!Re: 大侠救命, java 初级问题,在线等待,急!
相关主题
Hibernate sequences question完全新手的一个初级编程问题
问题征解初级问题
anonymous innerclass reflection questionAnswer to "Is this a Bug or not? "
一道java题Re: Entity EJB: anyone with real experience
感觉inner class挺好用的How do I catch a PKCS#10 request?
请问一个语法问题[转载] 请教一个猜数字的算法
spring security还真有点怪Generating Java code in SCR
请问一个初级问题:field 是什么概念?self-modifying code?
相关话题的讨论汇总
话题: class话题: file话题: generate话题: 奇怪话题: anyone
进入Java版参与讨论
1 (共1页)
j****s
发帖数: 34
1
真的有时侯有用,谢谢了!
但是很奇怪, 这个 A.java compiler , generate 4 class file,
which are A$1.class, A$2.class, A.class, A$maincontrol.class
Why become that?
And I can only cut other file and generate this class.
THe method does not work for other file
Anyone has idea?
thanks
s*****y
发帖数: 4
2
看一下,在A.java中是否有内部类(inner class),如果有是会编译出这种class的。

【在 j****s 的大作中提到】
: 真的有时侯有用,谢谢了!
: 但是很奇怪, 这个 A.java compiler , generate 4 class file,
: which are A$1.class, A$2.class, A.class, A$maincontrol.class
: Why become that?
: And I can only cut other file and generate this class.
: THe method does not work for other file
: Anyone has idea?
: thanks

q***e
发帖数: 90
3
They are anonymous classes. If you don't know
what is anonymous class, just disregard it.

【在 j****s 的大作中提到】
: 真的有时侯有用,谢谢了!
: 但是很奇怪, 这个 A.java compiler , generate 4 class file,
: which are A$1.class, A$2.class, A.class, A$maincontrol.class
: Why become that?
: And I can only cut other file and generate this class.
: THe method does not work for other file
: Anyone has idea?
: thanks

1 (共1页)
进入Java版参与讨论
相关主题
self-modifying code?感觉inner class挺好用的
Java 2D help..请问一个语法问题
how to add my own class into a jar file?spring security还真有点怪
random seed generator请问一个初级问题:field 是什么概念?
Hibernate sequences question完全新手的一个初级编程问题
问题征解初级问题
anonymous innerclass reflection questionAnswer to "Is this a Bug or not? "
一道java题Re: Entity EJB: anyone with real experience
相关话题的讨论汇总
话题: class话题: file话题: generate话题: 奇怪话题: anyone