difference between .java and .class | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

difference between .java and .class

19th Aug 2016, 4:56 PM
Akash Gupta
Akash Gupta - avatar
2 Answers
+ 2
.java files are where you write your code, .class files are bytecode resulting from the compilation of .java files by javac.
19th Aug 2016, 5:01 PM
Zen
Zen - avatar
+ 2
.java has the source code, .class has the compiled java bytecode
23rd Aug 2016, 9:01 PM
kelvin kosgei
kelvin kosgei - avatar