Compile time polymorphism: Example of compile time polymorphism is method overloading. method overloading is or more methods with the same name but with different parameter public class test{ public int add(int x, int y) { return x+y; } public int add(int x, int y, int z) //compare to above method it have different signature so its compile time polymorphism { return x+y+z; }}