FirstNaukri
Home Search Jobs Govt JobsNew Resume Makernew Career Guidance Ask n Answer Student Ambassadors

Register|Login

  Ask n Answer
  Ask a Question
0 out of 300 characters

QUESTION
JVM Converted source code in machine code i.e calleByte code......So Why it is colled Byte code????
By Vijay Shivaji Kok... (Beginner)  8 years ago   27 views
 
 Your Answer
0 out of 1250 character
 
 
 
Share |
Report Abuse
 
 
 
 
ANSWERS (2)
 
 
 
 
'BYTECODE' is computer object code that is processed by a program, usually referred to as a virtual machine, rather than by the 'real' computer machine, the hardware processor.
 
 
 
Know a better answer? Click here to post.
 
 
Java source code is never directly converted to machine code. Java compiler (and not JVM) converts the source code into byte code which is an intermediate stage and is machine independent. Only the JVM can understand this byte code. The Java interpreter, which is part of the JVM, converts this byte code into the platform specific machine code.
 
 
Vijay Shivaji Kok... ok sir...,but why it is called Byte Code?????
8 years ago
 
 
 
Amir Ashraf Aazmi because each byte in the byte code represents one instruction (also known as opcodes). So, infact, one byte can represent 256 different opcodes. You may read more about byte codes here: http://en.wikipedia.org/wiki/Java_bytecode
8 years ago
 
 
 
Vijay Shivaji Kok... Thank u sir...... I here by in java progrming language in each program have each line definite size....which is 1 byte so it is called byte code. Thank to Help mi.
8 years ago
 
 
 
 
Know a better answer? Click here to post.
 
 
 
 
 

Ask & Answer
Panel of Experts

 
 
 
 
 
All rights reserved © 2022 Info Edge (India) Ltd.