New course! Every coder should learn Generative AI!
Try a free lesson- 1
difference between .java and .class
2 Answers
+ 2
.java files are where you write your code, .class files are bytecode resulting from the compilation of .java files by javac.
+ 2
.java has the source code, .class has the compiled java bytecode