Introduction to Java Architecture and Installation

Posted by Chaitanya Shahare on Fri, Jul 21, 2023

https://youtu.be/4EP8YzcN0hQ

Introduction

How java code executes

  • extention .java
  • compiler -> converts code file to byte code (in java) (.class file)
  • java is platform independent - this means that java code complied on one machine can run on any other machine without recompiling
  • JVM is platform dependent JVM runs the .class file

More about platform independence

more about platform independence

  • Java Virtual Machine (JVM) converts this bytecode to machine code
  • jvm is machine dependent

JDK vs JRE vs JVM vs JIT

JDK vs JRE vs JVM vs JIT

JDK (Java Development Kit)

JDK

  • JDK is the software that you install on your computer to work with java

JRE (Java Runtime Environment)

JRE

Flow chart

flow chart

flow chart 2

JRE vs JVM

For example

  • JRE is the box
  • JVM is inside the box that does the work

JDE installation from oracle.com

IDE installation (IntelliJ community edition)

Resources