Tag

PrintStream

1 views collected around this technical thread.

Selected Java Interview Questions
Selected Java Interview Questions
Nov 29, 2022 · Fundamentals

Understanding Java's System.out.println(): Internals, Overloading, and OOP Principles

This article explains the inner workings of Java's System.out.println() method, covering the System and out components, the PrintStream class, method overloading, and example code demonstrating how different argument types affect output, thereby illustrating core object‑oriented programming concepts.

JavaPrintStreamSystem.out.println
0 likes · 5 min read
Understanding Java's System.out.println(): Internals, Overloading, and OOP Principles
Java Captain
Java Captain
Dec 25, 2017 · Fundamentals

Why Printing a null Object in Java Does Not Throw an Exception

This article explores Java's handling of null references when printed or concatenated, showing how PrintStream.print and StringBuilder.append convert null values to the literal string "null" without raising exceptions, and walks through the underlying source code and bytecode.

JDK sourceJavaNull Handling
0 likes · 7 min read
Why Printing a null Object in Java Does Not Throw an Exception