Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback, please email oracle-forums_moderators_us@oracle.com

Why do we have two .class files created when compiling a java code?

User_2Q3RQJun 7 2021

Hi I just started learning java.
What troubles me is when a .java file is compiled using javac in the terminal, why are there 2 .class files (one in the out folder and another in src folder).

Comments
Post Details
Added on Jun 7 2021
1 comment
1,253 views