println() overloading or overriding?
One of hundreds of answers available with our premium content service.
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
Premium members click below for full answer
Is println() overloading or overriding?