Open the app

Lesson 1 · Hello Java

Java is a strongly-typed, object-oriented programming language developed by Sun Microsystems (now Oracle), released in 1995. Every Java program begins with a class definition containing a main method — the program entry point. The canonical first Java program prints to standard output via PrintStream.println. The Java Development Kit (JDK) bundles the compiler (javac), runtime (JRE/JVM), debugger (jdb), and standard class library. Java SE 21 is the current Long-Term Support (LTS) release per Oracle. Java enforces strong encapsulation: all code resides in classes; access is controlled via public, protected, package-private, and private modifiers. The JVM performs automatic garbage collection, eliminating manual memory management.

25 min · 50 XP

Start Learning →

What this asks you

Which of the following is the correct syntax for the main method that allows a Java program to execute instructions?

and 2 more questions

Before this

This opens up

Where our lessons come from →

← Samevia