"Hello, World!" in Java
How to do "Hello, World!" in Java.
// HelloWorld.java
public class HelloWorld
{
public static void main(String[] args)
{
System.out.println("Hello, World!");
}
}
Java is one of the more versatile languages out there, both for writing server-side solutions (with Spring Boot and other frameworks), and for creating mobile apps for Android.
For more "Hello, World!" examples, go to the Hello World category.