Skip to content

Foundations in Java : Coding & Runtime


Class Structure

|400

  1. class keyword tells the Java Compiler that this is a type of Class
  2. HelloWorld is the class name (stored in HelloWorld.java file)
  3. { and } denote the Start and End of the class (your code)

What happens : Process flow

Overview of compilation and running


A bit more detailed

"Deeper dived" into what's happening when you compile and run Java code:

|300


How Java runs on Multiple Platforms?

![[yImages/Pasted Image 20251123131226_988.png|500]]

JVMs are available for many platforms through many vendors.


© 2023-2025 Maduranga Kannangara. Feel free to use or share this content. Attribution is appreciated but not required.