Java
Java is a popular, general-purpose programming language known for being object-oriented, statically typed, and 'write once, run anywhere.' Code is compiled to bytecode that runs on the Java Virtual Machine (JVM), so the same program works on any device that has a JVM.
Java
Created by Sun Microsystems in 1995 and now maintained by Oracle, Java is used for Android apps, large enterprise systems, web back-ends, and big-data tools. Its strong type checking and huge standard library make it a common first language for learning programming.
Java code is saved in .java files, compiled into .class bytecode files by the compiler, and then executed by the JVM.
Examples
Java
public class Main {
public static void main(String[] args) {
System.out.println("Hello, world!");
}
}Output:
Hello, world!