What does the `System.out.println()` method do in Java?

Java Associate Easy

Java Associate — Easy

What does the `System.out.println()` method do in Java?

Key points

  • `System.out.println()` prints to the console
  • It adds a newline character after the text
  • Useful for debugging and displaying output
  • Does not read input from the user or write to a file

Ready to go further?

Related questions