JAVA
Java Development Kit(JDK):
This kit provides all required tools and libraries to develop java program this contains
JDK
├── JRE
│ ├── JVM
│ └── Libraries
└── Development tools
Development Tools helps to develop and to compile code
where java code is translated to byte code and class file is created
Java Runtime Environment(JRE):
he JRE contains the core Java libraries that your program needs at runtime
The JVM(Java Virtual Machine) inside the JRE executes the bytecode. It may interpret it or compile frequently used code to machine code using the Just-In-Time (JIT) compiler.
JavaScript
JavaScript's architecture is different from Java because it doesn't have separate JDK, JRE, and JVM components. Instead, it consists of a runtime and a JavaScript engine
- JavaScript Development Environment
Developers typically use:
- Node.js (for server-side development)
- npm (package manager)
Build tools like Vite, Webpack, Babel, or TypeScript (optional)
JavaScript Runtime
The runtime is the environment where JavaScript executes.
Examples:
- Browser (Chrome, Firefox, Safari, Edge)
Node.js
JavaScript Engine
The engine is responsible for executing JavaScript code.
Examples:
- V8 – Chrome and Node.js
- SpiderMonkey – Firefox
- JavaScriptCore – Safari
Python
Python's architecture is closer to Java's than JavaScript's because it also compiles source code into bytecode, which is then executed by a virtual machine.
Python Source (.py)
│
▼
Python Interpreter
│
Compiles to Bytecode (.pyc)
│
▼
Python Virtual Machine (PVM)
│
Executes Bytecode
│
▼
Machine Code
│
▼
Operating System
Python Interpreter changes the python code to byte code then Python Virtual machine executes byte code to machine code
Top comments (0)