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
Database Concepts (8th Edition)
Starting Out With Visual Basic (8th Edition)
Java How to Program, Early Objects (11th Edition) (Deitel: How to Program)
Degarmo's Materials And Processes In Manufacturing
INTERNATIONAL EDITION---Engineering Mechanics: Statics, 14th edition (SI unit)
Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
- 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