0

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?

AVA
  • 2,388
  • 2
  • 22
  • 30

1 Answers1

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,564
  • 3
  • 24
  • 34