Veda Bites are swipeable micro-lessons — each one teaches exactly one
idea. Here's a taste from this kit; the app has the full deck.
💡 Key Idea
Java's Core Promise: Write Once, Run Anywhere
Platform independence is the key.
Java source code (`.java` files) is compiled by the javac compiler into bytecode (`.class` files). This bytecode runs on the Java Virtual Machine (JVM), which is platform-specific but makes Java programs portable across any system with a JVM installed.
↳ Java achieves portability by compiling to bytecode, executed by the JVM.
📖 Definition
JVM, JRE, JDK — The Three Layers
Know the difference to save time.
↳ JDK is for development; JRE is for running; JVM is the engine inside both.
⭐ Important Fact
Main Method — The Entry Point
Every Java app starts here.
The JVM looks for this exact signature to begin execution. `public` makes it accessible; `static` allows calling without an object; `void` returns nothing; `String[] args` holds command-line arguments.
↳ The `main` method is the mandatory starting point for any standalone Java application.