Data Structure
Java
Python
HTML
Interview Preparation
Interview Prep
Tutorials
Tracks
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.0K+ articles
Python
19.6K+ articles
Java
9.3K+ articles
Misc
7.7K+ articles
Difference Between
3.1K+ articles
Java-Output
54+ articles
Java-Constructors
36+ articles
java-overriding
16+ articles
java-puzzle
11+ articles
Java-Overloading
11 posts
Recent Articles
Popular Articles
Automatic Type Promotion in Overloading in Java
Last Updated: 11 January 2022
Before going into the actual topic, first, we need to know about method overloading and type promotions.What is Method Overloading?When a class consists of more than one m...
read more
Java
Picked
Java-Overloading
Invalid Method Overloading in Java
Last Updated: 23 July 2025
Overloaded methods are those which belong to the same class, having the same name but different arguments. The concept of method overloading came from polymorphism. Litera...
read more
Java
Blogathon
Blogathon-2021
Java-Overloading
Overloading Variable Arity Method in Java
Last Updated: 12 September 2022
Here we will be discussing the varargs / variable arity method and how we can overload this type of method. So let us first understand what a variable arity method is and ...
read more
Java
Java-Overloading
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
Java Function/Constructor Overloading Puzzle
Last Updated: 03 September 2018
Predict the output of the programJava public class GFG { private GFG(Object o) { System.out.println(Object); } private GFG(double[] d) { ...
read more
Misc
Java
Java-Constructors
java-puzzle
Java-Overloading
Output of Java program | Set 22 (Overloading)
Last Updated: 23 July 2025
Prerequisite - Overloading in Java1) What is the output of the following program?Java public class Test{ public int getData() //getdata() 1 { retur...
read more
Java
Java-Output
Java-Overloading
Method Overloading and Ambiguity in Varargs in Java
Last Updated: 23 July 2025
Prerequisite - Varargs , Method OverloadingMethod Overloading in VarargsOverloading allows different methods to have same name, but different signatures where signature ca...
read more
Java
Java-Overloading
Different Ways of Method Overloading in Java
Last Updated: 23 July 2025
In Java, Method overloading refers to the ability to define multiple methods with the same name but with different parameter lists in the same class. It improves code read...
read more
Java
Java-Overloading
Method Overloading in Java
Last Updated: 15 October 2025
In Java, Method Overloading allows a class to have multiple methods with the same name but different parameters, enabling compile-time (static) polymorphism.Methods can sh...
read more
Java
Java-Overloading
GFact 48 | Overloading main() in Java
Last Updated: 23 July 2025
Consider the below Java program.Java // A Java program with overloaded main()import java.io.*;public class Test { // Normal main() public static void ...
read more
Java
Java-Overloading