What is the difference between machine language code and byte code?
Explanation of Solution
Machine Language:
- Machine language is also called as object code.
- The machine language varies from operating system (OS) to another.
Byte code:
Java program is the high-level language. So, java compiler is used to compile the java program (high-level language) into java bytecode (standard machine code).
Difference between machine language code and byte code:
Machine Language code | Byte code |
Machine language is also called as object code. | The Java compiler generates the source code into “Bytecode”. |
It is executed directly by CPU. It is in binary format. | The JVM (Java Virtual Machine) interpreter is designed to execute the bytecode program produced by the compiler. |
It is difficult for humans to read and write. But, it is easily understood by computers. | The interpreter takes the bytecode to convert the machine code and executes it. |
Want to see more full solutions like this?
Chapter 1 Solutions
Starting Out with Java: From Control Structures through Objects (7th Edition) (What's New in Computer Science)
Additional Engineering Textbook Solutions
Starting Out with Java: From Control Structures through Data Structures (4th Edition) (What's New in Computer Science)
Computer Systems: A Programmer's Perspective (3rd Edition)
Problem Solving with C++ (9th Edition)
Java How to Program, Early Objects (11th Edition) (Deitel: How to Program)
Starting Out with Java: Early Objects (6th Edition)
Starting Out With Visual Basic (8th Edition)
- Microsoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageSystems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage Learning