---
title: "Why Java is platform independent?"  
description: "Why Java is platform independent?"  
author: "Hemant Patel"  
published: 2017-11-14  
canonical: https://answers.mindstick.com/qa/30599/why-java-is-platform-independent  
category: "technology"  
tags: ["java programming"]  
reading_time: 1 minute  

---

# Why Java is platform independent?

Why [Java](https://www.mindstick.com/articles/1702/introduction-to-java) is [platform](https://www.mindstick.com/news/2353/launch-of-amazon-clinic-s-virtual-healthcare-platform-for-us-clients) [independent](https://answers.mindstick.com/qa/44988/who-is-the-minister-of-communications-independent-charge-railways-ministry)?

## Answers

### Answer by Arti Mishra

**“Platform Independent”** \

Before starting, why Java is platform independent language, first you know about what is platform independent? The platform Independent means **source code of any programming language can run on any operating system.** **\**Java is platform independent language because when you compile Java source code it **generates corresponding Bytecode** that makes it platform independent. And the main important point for java platform independencies is **JVM is platform-dependent**. Every System has its own JVM which is automatically installed when the JDK software is installed and **JVM is capable to read the bytecode or** **.class file code.** **Execution of Java Program:** ![Why Java is platform independent?](https://answers.mindstick.com/questionanswer/351670d4-9ca0-45e5-bde9-3f1337fd3971/images/3d32d286-ecd6-46f5-84ec-dad014e84b8e.png)**\**\


---

Original Source: https://answers.mindstick.com/qa/30599/why-java-is-platform-independent

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
