+ 19

.class file && byte code

I want to know whether these two terms are exactly the same or is there any difference between the two

6th Jul 2018, 3:29 AM
World Champion
World Champion - avatar
5 Answers
+ 22
NITHISH K thanks for the link
6th Jul 2018, 4:33 AM
World Champion
World Champion - avatar
+ 19
Thanks Tarika for the detailed explanation.
6th Jul 2018, 2:05 PM
World Champion
World Champion - avatar
+ 6
.class file consists of byte code, suppose we have a source file called 'MyClass.java' which consists of souce code and also called as java file, we will give this to compiler, if compiler compile it successfully then it is converted into MyClass.class file , .class file is not human readable as it consists of byte code ,then interpreter will interpret byte code line by line into a machine code ,and then this machine code is executed by microprocessor which will generate output.
6th Jul 2018, 12:38 PM
Tarika
Tarika - avatar
+ 3
both means the same... checkout the below link for description..... https://www.thecrazyprogrammer.com/2014/06/what-is-class-file-and-bytecode-in-java.html
6th Jul 2018, 4:02 AM
NITHISH K
NITHISH K - avatar
0
Hello
8th Jul 2018, 12:12 AM
N'tcha Mpo MĂ©dard
N'tcha Mpo MĂ©dard - avatar