Data Structure
Java
Python
HTML
Interview Preparation
Tutorials
Courses
Tracks
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
Java
9.3K+ articles
Misc
7.7K+ articles
Java-Functions
4.2K+ articles
Java-Multithreading
97+ articles
Java-Exceptions
84+ articles
Java-Object Oriented
60+ articles
Java-Constructors
36+ articles
java-inheritance
35+ articles
Java-Packages
17+ articles
java-overriding
16 posts
Recent Articles
Popular Articles
Variables in Java Do Not Follow Polymorphism and Overriding
Last Updated: 23 July 2025
Variables in Java do not follow polymorphism. Overriding is only applicable to methods but not to variables. In Java, if the child and parent class both have a variable wi...
read more
Java
Blogathon
Blogathon-2021
java-inheritance
java-overriding
When We Need to Prevent Method Overriding in Java ?
Last Updated: 23 July 2025
Here we will be discussing why should we prevent method overriding in java. So, before going into the topic, let's give a look at the below important concept then we will ...
read more
Java
Java-Object Oriented
java-overriding
Can We Override Default Method in Java?
Last Updated: 23 July 2025
Default method in Java is a method in java which are defined inside the interface with the keyword default is known as the default method. It is a type of non-abstract met...
read more
Java
Technical Scripter
Picked
Technical Scripter 2020
Java 8
java-overriding
Java - Covariant Method Overriding with Examples
Last Updated: 05 February 2021
The covariant method overriding approach, implemented in Java 5, helps to remove the client-side typecasting by enabling you to return a subtype of the overridden method's...
read more
Java
Picked
java-overriding
finalize() Method in Java and How to Override it?
Last Updated: 30 July 2025
The finalize() method in Java is called by the Garbage Collector just before an object is destroyed. It allows the object to perform a clean-up activity. Clean-up activity...
read more
Java
Java-Functions
java-overriding
Overloading vs Overriding in Java
Last Updated: 14 October 2025
Method Overloading and Method Overriding allow methods with the same name but different behavior, supporting polymorphism, the ability of one name to represent multiple fo...
read more
Java
Difference Between
Java-Overloading
java-overriding
How to overload and override main method in Java
Last Updated: 11 July 2025
How to overload main method in java?Method Overloading can be defined as a feature in which a class can have more than one method having the same name if and only if they ...
read more
Java
Picked
main
Java-Overloading
java-overriding
Method Overriding with Access Modifier
Last Updated: 11 July 2025
Prerequisites: Method Overriding in java and Access Modifier in Java Method Overriding In any object-oriented programming language, Overriding is a feature that allows a s...
read more
Java
java-inheritance
java-overriding
Exception Handling with Method Overriding in Java
Last Updated: 02 August 2025
Exception handling with method overriding in Java refers to the rules and behavior that apply when a subclass overrides a method from its superclass and both methods invol...
read more
Java
Java-Exceptions
Java-Object Oriented
Java-Exception Handling
java-overriding
Overriding methods from different packages in Java
Last Updated: 22 June 2020
Prerequisite : Overriding in Java, Packages in JavaPackages provide more layer of encapsulation for classes. Thus, visibility of a method in different packages is differe...
read more
Java
java-inheritance
Java-Packages
java-overriding
Overriding of Thread class start() method
Last Updated: 30 November 2018
Whenever we override start() method then our start() method will be executed just like a normal method call and new thread wont be created. We can override start/run metho...
read more
Misc
Java
Java-Multithreading
java-overriding
Why Constructors are not inherited in Java?
Last Updated: 30 November 2018
Constructor is a block of code that allows you to create an object of class and has same name as class with no explicit return type.Whenever a class (child class) extends ...
read more
Java
java-inheritance
Java-Constructors
java-overriding
Overriding in Java
Last Updated: 14 October 2025
When a subclass provides a specific implementation for a method that is already defined in its parent class, it is called method overriding. The overridden method in the s...
read more
Java
java-overriding
Overriding toString() Method in Java
Last Updated: 23 July 2025
Java being object-oriented only deals with classes and objects so do if we do require any computation we use the help of object/s corresponding to the class. It is the mos...
read more
Java
java-overriding
Overriding equals method in Java
Last Updated: 23 July 2025
Consider the following Java program:Java class Complex { private double re, im; public Complex(double re, double im) { this.re = re; ...
read more
Java
java-overriding
1
2