Electro4u 05 Feb 2023 8 views 0 comments Core Java

Polymorphism in java

Polymorphism:

If an object exists in more than one form, it is called polymorphism.

This is a Greek word poly means many and morphism means structure or form.

There are two types of Polymorphism:-

  • Static Polymorphism
  • Dynamic Polymorphism

 Static Polymorphism:

If polymorphism is present at compile time then it is called static polymorphism

EX: Overloading.

 Dynamic Polymorphism:

If polymorphism exists on the inference then that polymorphism is called motion polymorphism.

EX: Overriding

0 Comments

No comments yet, Be the first to comment.

Post a Comment

Please sign in to post a comment.

Related Posts

Unlock the Ins and Outs of JavaScript Engines and Runtimes

What is a JavaScript Engine? A JavaScript engine is a program or interpreter which executes JavaScript code....

BM Balmiki Mandal 05 Sep 2023
Implementing HMACSHA256 Algorithm in Java with Key

Introducing HMACSHA256 in Java with Key HMACSHA256 is an authentication algorithm designed to secure data, su...

BM Balmiki Mandal 30 Aug 2023
HMACSHA256 Java Example - Creating Secure Message Authentication

HMACSHA256 Java Example HMACSHA256 is an advanced encryption algorithm that allows developers to create encry...

BM Balmiki Mandal 30 Aug 2023