What is the .class file??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the .class file???

29th Nov 2016, 2:45 PM
Vatsal Mengar
Vatsal Mengar - avatar
2 Answers
+ 2
.class file is a file that is created after you have compiled your code and after that a .class file is generated and inside contains bytecode that is only knowable by the java virtual machine JVM. Java is platform independent this means the code you compile is turned to bytecode then after bytecode the JVM turns bytecode to machine language based on the platform that your computer works so this makes java platform independent. in C++ after compiling a .exe file is created that is understandable only by the windows platform
29th Nov 2016, 3:07 PM
( ͡° ͜ʖ ͡°)
0
A Java class file is a file (with the .class filename extension) containing Java bytecode that can be executed on the Java Virtual Machine (JVM). A Java class file is produced by a Javacompiler from Java programming language source files (.java files) containing Java classes.
1st Dec 2016, 7:27 PM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar