Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

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
3,496 views