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
DSA
22.8K+ articles
Java
10.8K+ articles
Misc
8.8K+ articles
Difference Between
3.6K+ articles
Computer Science Fundamentals
1.5K+ 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
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
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
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
Invalid Method Overloading in Java
Last Updated: 30 September 2021
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
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
GFact 48 | Overloading main() in Java
Last Updated: 03 September 2018
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
Method Overloading in Java
Last Updated: 29 May 2025
In Java, Method Overloading allows us to define multiple methods with the same name but different parameters within a class. This difference may include:The number of para...
read more
Java
Java-Overloading
Different Ways of Method Overloading in Java
Last Updated: 07 April 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
Computer Science Fundamentals
Java-Overloading
Method Overloading and Ambiguity in Varargs in Java
Last Updated: 03 September 2018
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
Output of Java program | Set 22 (Overloading)
Last Updated: 03 February 2021
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
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 !