FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
#java #oop #programming #100daysofcode
How-ToProgramming Languages

#java #oop #programming #100daysofcode

via Dev.toKanishka Shrivastava1mo ago

Java Concepts I’m Mastering – Part 5: Method Overloading Continuing my journey of mastering Java fundamentals while building real projects. Today’s concept: Method Overloading. What is Method Overloading? Method Overloading means: Same method name, but different parameters. Java decides which method to call based on: Number of parameters Type of parameters Order of parameters Example class Calculator { int add(int a, int b) { return a + b; } double add(double a, double b) { return a + b; } int add(int a, int b, int c) { return a + b + c; } } Same method name → add Different parameter lists → Overloading Why is it Useful? Improves code readability Makes APIs cleaner Supports compile-time polymorphism Important Rule You cannot overload methods by only changing the return type. This is invalid: int add(int a, int b) double add(int a, int b) // Error Parameters must differ. What I Learned Overloading makes code flexible It’s resolved at compile-time It’s one of the foundations of Polymorph

Continue reading on Dev.to

Opens in a new tab

Read Full Article
18 views

Related Articles

How-To

The Difference between `let`, `var` and `const`

Medium Programming • 1d ago

How-To

Circulation Metrics Framework for Living Systems

Medium Programming • 1d ago

Red Rooms makes online poker as thrilling as its serial killer
How-To

Red Rooms makes online poker as thrilling as its serial killer

The Verge • 1d ago

Don’t Know What Project to Build? Here Are Developer Projects That Actually Make You Better
How-To

Don’t Know What Project to Build? Here Are Developer Projects That Actually Make You Better

Medium Programming • 2d ago

Why Most Developers
Stay Broke
How-To

Why Most Developers Stay Broke

Medium Programming • 2d ago

Discover More Articles