Submitted by heartin on Mon, 09/14/2015 - 21:27
The ability to change form is known as polymorphism. Java supports different kinds of polymorphism like oveloading and overriding.
Overloading
The same method name (method overloading) or operator symbol (operator overloading) can be used in different contexts.
In method overloading, multiple methods having same name can appear in a class, but with different signature. And based on the number and type of arguments we provide while calling the method, the correct method will be called.
Submitted by heartin on Sat, 08/25/2012 - 01:18
Java doesn't allow operator overloading yet + is overloaded for class String. Here we will discuss examples for use of + with Strings and characters.