CSS font stacks & developer FAQs with Web standards
Site navigation below

One of hundreds of answers available with our premium content service.

Part answer

A: The PrintWriter println() method is an example of overloading because several methods in the class have the same name and return the same type. In this case, println(boolean), println(int) and println(String) all have the same basic method name, "println", and all return void. The only part of the method signature that varies is the type of the argument (including none), which is enough for the Java interpreter to identify the appropriate method to call at runtime.

… full answer hidden

Click for full answers

Premium members click below for full answer
Is println() overloading or overriding?

Home · Web fonts · Font stacks · FAQs · Java · CSS · Javascript · HTML · Site manager