---
title: "What gives Java its 'write once and run anywhere' nature?"  
description: "What gives Java its 'write once and run anywhere' nature?"  
author: "Devesh Kumar Singh"  
published: 2015-11-10  
updated: 2020-09-23  
canonical: https://www.mindstick.com/interview/22896/what-gives-java-its-write-once-and-run-anywhere-nature  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# What gives Java its 'write once and run anywhere' nature?

The bytecode. Java is compiled to be a byte code which is the intermediate language between source code and machine code. This byte code is not platform specific and hence can be fed to any platform.

## Answers

### Answer by Devesh Kumar Singh

The bytecode. Java is compiled to be a byte code which is the intermediate language between source code and machine code. This byte code is not platform specific and hence can be fed to any platform.


---

Original Source: https://www.mindstick.com/interview/22896/what-gives-java-its-write-once-and-run-anywhere-nature

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
