1.1. Get Started With Java & Installation

Java is Platform Independent

  • which means you can write a Java program once and run it on any computerβ€”Windows, Mac, or Linux without changing the code.
  • Here’s how it works

Java Platform Independence Flowchart
        πŸ“ Write Java Code
            β”‚
            β–Ό
        πŸ”„ Convert to Bytecode
            β”‚
            β–Ό
        πŸ–₯ Enter the JVM
            β”‚
            β–Ό
        βš™ Turn Bytecode into Machine Code
            β”‚
            β–Ό
        πŸš€ Run the Program!
    
  • Source Code – The original Java program written by the programmer.
  • Bytecode – A special format that JVM can read but computers can’t.
  • Machine Code – The actual instructions that a computer understands.
  • Compiler – Translates source code into bytecode.
  • JVM (Java Virtual Machine) – Translates bytecode into machine code and makes Java platform-independent.

Pages: 1 2 3