I have a source java file, Test.java.
While Compiling it, java compiler generates more than one class files as follows (class name suffixed with $ and a unique numerals),
Test$1.class
Test$2.class
Test$3.class
Test.class
Why such more than one byte code class file per java source file is generated? Is there any limitation on such files in number?
Asked
Active
Viewed 112 times
0

AVA
- 2,474
- 2
- 26
- 41
1 Answers
1
Those are the .class files that hold the anonymous inner classes.
Reference:what are the $1 in class file?

Community
- 1
- 1

user1933888
- 2,897
- 3
- 27
- 36
-
1Please mark duplicate questions as duplicates rather than answering them. – Sleiman Jneidi May 17 '16 at 12:37