How does System.out.print() work?

System.out is just an instance of PrintStream. You can check its JavaDoc. Its variability is based on method overloading (multiple methods with the same name, but with different parameters). This print stream is sending its output to so called standard output. In your question you mention a technique called variadic functions (or varargs). Unfortunately that … Read more

What’s the meaning of System.out.println in Java?

No. Actually out is a static member in the System class (not as in .NET), being an instance of PrintStream. And println is a normal (overloaded) method of the PrintStream class. See http://download.oracle.com/javase/6/docs/api/java/lang/System.html#out. Actually, if out/err/in were classes, they would be named with capital character (Out/Err/In) due to the naming convention (ignoring grammar).

How can I make Java print quotes, like “Hello”?

System.out.print(“\”Hello\””); The double quote character has to be escaped with a backslash in a Java string literal. Other characters that need special treatment include: Carriage return and newline: “\r” and “\n” Backslash: “\\” Single quote: “\'” Horizontal tab and form feed: “\t” and “\f” The complete list of Java string and character literal escapes may … Read more