---
title: "What is Byte Code?"  
description: "What is Byte Code?"  
author: "Somesh"  
published: 2010-11-30  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/272/what-is-byte-code  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# What is Byte Code?

All Java programs are compiled into class files that contain bytecodes. These byte codes can be run in any platform and hence java is said to be platform independent.

## Answers

### Answer by Amit Singh

Programming code that, once compiled, is run through a virtual machine instead of the computer??s processor. By using this approach, source code can be run on any platform once it has been compiled and run through the virtual machine.\
\
Bytecode is the compiled format for Java programs. Once a Java program has been converted to bytecode, it can be transferred across a network and executed by Java Virtual Machine (JVM). Bytecode files generally have a .class extension.\
\

### Answer by Somesh

All Java programs are compiled into class files that contain bytecodes. These byte codes can be run in any platform and hence java is said to be platform independent.


---

Original Source: https://www.mindstick.com/interview/272/what-is-byte-code

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
