• TestingDocs
TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

Java Tutorials

Java Polymorphism

Overview

In this tutorial, we will learn about Java Polymorphism. Polymorphism is the ability of an object to take on many forms.

Java Polymorphism

Polymorphism is one of the basic principles of Object-Oriented Programming. There are two types of polymorphism:

  • Static Polymorphism
  • Dynamic Polymorphism

 

Java Polymorphism

Polymorphism is the capability of an action or method to do different things based on the object.

Method Overloading

Method overloading is defining more than one method with the same name but with different method signatures. The name of the method is the same but the number and type of method parameters and method return types might be different. When an overloaded method is encountered, Java executes the version of the method whose parameters match the arguments used in the method call.

Method overriding

Method overriding allows programmers to provide different implementations for the methods in parent class and subclasses. The method name and the method signature would be the same but with different implementations. The actual method called depends on the type of object at runtime.

—

Java Tutorials

Java Tutorial on this website:

https://www.testingdocs.com/java-tutorial/

For more information on Java, visit the official website :

https://www.oracle.com/java/

Related Posts

Java Performance

Java Tutorials /

Improving Java Performance with Multithreading

Download Greenfoot Windows

Java Tutorials /

Download & Install Greenfoot on Windows

Java Tutorials /

Java Static Code Analysis

Java Tutorials /

Java Testing Tools

Java Tutorials /

Handle Multiple Exceptions in Java

‹ Java Inheritance› Java Runnable Interface

Recent Posts

  • How to secure your SQL Database: Tips and Tricks
  • Shaping the Future of Development: Exploring Key Trends in Software Engineering
  • Improving Java Performance with Multithreading
  • Difference between PHP and JavaScript?
  • Bing Conversation Styles
  • ChatGPT Introduction
  • Open Source AI Frameworks
  • Artificial Intelligence Tools
  • Top AI Music Applications
  • Top AI Website Design Tools

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com