Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
Java
10.8K+ articles
Misc
8.8K+ articles
Java-Functions
4.2K+ articles
Java-Multithreading
92+ articles
Java-Exceptions
84+ articles
Java-Object Oriented
59+ articles
Java-Constructors
36+ articles
java-inheritance
35+ articles
Java-Packages
17+ articles
java-overriding
16 posts
Recent Articles
Popular Articles
Overriding in Java
Last Updated: 22 April 2025
Overriding in Java occurs when a subclass or child class implements a method that is already defined in the superclass or base class. When a subclass provides its own vers...
read more
Java
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 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
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
Method Overriding with Access Modifier
Last Updated: 15 September 2022
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: 12 June 2025
In Java, an exception is an unwanted or unexpected event that occurs during a program's execution, i.e., at runtime, and disrupts the normal flow of the program’s instruct...
read more
Java
Java-Exceptions
Java-Object Oriented
Java-Exception Handling
java-overriding
How to overload and override main method in Java
Last Updated: 05 April 2019
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
Difference Between Method Overloading and Method Overriding in Java
Last Updated: 18 April 2025
Understanding the difference between Method Overloading and Method Overriding in Java plays a very important role in programming. These two are the important concepts that...
read more
Java
Difference Between
Java-Overloading
java-overriding
finalize() Method in Java and How to Override it?
Last Updated: 02 June 2025
The finalize() method in Java is called by the Garbage Collector just before an object is destroyed. It allows the object to perform clean-up activity. Clean-up activity m...
read more
Java
Java-Functions
java-overriding
Can We Override Default Method in Java?
Last Updated: 29 September 2022
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
When We Need to Prevent Method Overriding in Java ?
Last Updated: 07 July 2022
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
Variables in Java Do Not Follow Polymorphism and Overriding
Last Updated: 23 September 2021
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
Overriding equals method in Java
Last Updated: 29 July 2021
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
Overriding toString() Method in Java
Last Updated: 25 February 2022
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
1
2
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !