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