Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

If I compile a Java file test.java, the file test.class is generated, but also a file test$.class. Is this a temporary file which I can delete?

delete file Java Temporary
0
Posted

If I compile a Java file test.java, the file test.class is generated, but also a file test$.class. Is this a temporary file which I can delete?

0

The event methods in GUI programs use anonymous classes. For these classes, the compiler creates separate class files with the $ in the name which are necessary to execute the Java program.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123