+ 3

what is the .class file

23rd Jan 2017, 1:10 AM
Ralph Haides
Ralph Haides - avatar
3 Antworten
+ 2
When you compile your program, it will automatically create a .class file for every class you have there. Class files contain bytecode, which is instruction for JVM, which then translates the bytecode into platform-specific (Windows, Linux etc.) machine level instruction. Thanks to this, Java is platform independent. :-)
23rd Jan 2017, 2:56 AM
Heroes Killer
Heroes Killer - avatar
+ 1
is a file of java class, compiled :)
23rd Jan 2017, 5:26 AM
ERIK ROKY SHUPINGAHUA
ERIK ROKY SHUPINGAHUA - avatar
0
heores is correct during compilation of source codes it generates .class files for each class. .class now contains java byte code which jvm understands and executes it's human unreadable.
23rd Jan 2017, 4:09 AM
Sandeep Chatterjee