Introduction to Java

Java is a high-level, object-oriented programming language designed for portability and scalability. It's widely used in enterprise applications, Android development, and more.

Consider the following snippet:

public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello, World!");
    }
}
        

This program prints "Hello, World!" to the console. It's a basic starting point for understanding Java syntax.