Posts

Showing posts with the label Different




Explain the Different Forms of Polymorphism in Java

Image
Any Java object that can pass more than one IS-A test is considered to be polymorphic and in java all the java objects are polymorphic as it has passed the IS-A test for their own type and for the class Object. Types of polymorphism in java- Runtime and Compile time polymorphism 1 Static Polymorphism also known as compile time polymorphism 2 Dynamic Polymorphism also known as runtime polymorphism. Dynamic Polymorphism In Java Javatpoint What is polymorphism in Java explain with example. . 1 Compile-time polymorphism static binding 2 Runtime polymorphism dynamic binding Method overloading is an example of compile time polymorphism while method overriding is an example of runtime polymorphism. Below are the different types of polymorphism in java. In OOP polymorphism allows an operation to exhibit different behaviour in different instances. In Object-Oriented Programming OOPS language there are two types of polymorphism as b...