System.out.print()
Prints text without creating a new line at the end. cursor stays on the same line.System.out.println()
Prints text and moves the cursor to the new line (ln = line).Example
System.out.print("Hello");
System.out.print("World");
// Output: HelloWorldSystem.out.println("Hello");
System.out.println("World");
// Output:
// Hello
// World