Menu
Course Lessons
What is Full Stack Development?
Role of Social Media in Supply Chain Management
All About Resume and Its Importance
The Ultimate Basic Resume Format & Structure Guide
Resume Keywords: Optimize Your Resume and Get Interview Call
50 Power Words For Your Resume
Why Are Keywords Important in a Resume?
4 Tips for Using Keywords in a Resume
This is why you should be a career coach!
Types of Power Words for Resume Writing
Secrets Of A Good Resume, Which Will Get You Hired!
Why you Need to Appear for a Mock Interview Before an Actual One?
How to Write a Good Resume
4 Elements of a Power Resume
5 Resume Writing Myths That You Need to Stop Following Now!
Preparing for Final Placements Effectively
5 Resume Design Principles to Create the Best Resume Design
Best Fonts & Font Sizes to Use in a Resume
5 Common Resume Mistakes That You Need to Avoid
Do's and Don'ts of Resume Writing | Key Resume Writing Guidelines
How Many Pages Should An Ideal Resume Be?
The Basic Skills That You Should Not Put on a Resume
International Women's Day | In Conversation with Vishakha Vartak
Tips for Resume Writing & Resume Mistakes That You Should Avoid
Women's day special: In Conversation with Dr. Shoma Shrivatava
Top 6 Words To Avoid Writing In Your Resume
International Women's Day | In conversation with Sahana HS, Board Infinity Coach
4 Places for Professional Feedback On Your Resume
How to Check if Your Resume is Good for Submission?
What is a Job Interview?
Phone Interview Tips That Will Help You Get Hired
10 Common questions asked in an Interview
How To Introduce Yourself During An Interview
How To Make a Great First Impression In an Interview?
Prerequisites For A Job Interview
How To Answer The Question About Weaknesses In An Interview?
How To Prepare for a Group Interviews
How To Ace a Walk-In-Interview
How To Prepare For An Interview
What Is The STAR Interview Method?
Tips To Become A Full-Stack Developer
Day in the Life: Roles & Responsibilities of a Data Scientist
What is Meant by Machine Learning & What Can Machine Learning Do?
What is Artificial Intelligence and Machine Learning?
Concept of Big Data and Types of Big Data
A-List of the Top Machine Learning Algorithms in Python
Why Are Companies Hiring Big Data Analysts?
5 Major Skills Required for Success in Digital Marketing
The Myths of Full Stack Development
What is the Scope of Digital Marketing in 2025
What is Digital Marketing & How to Become a Digital Marketer
How To Explain Employment Gaps In Job Interview
What is Search Engine Optimization & How It Works
What Is Content Marketing?
AVP- HR of Manthan Systems enlightens about the field of Analytics
In conversation with Talent Manager at Bridge I2I on essential skills in Analytics
How To Write The Best Career Objective Statement for a Resume
Top 4 Data Science Job Interview Questions And Answers for Freshers
Tips on How to Follow Up After the Interview
Top 6 Web Developer Job Interview Questions And Answers
How To Correctly Follow Up after Rejection in a Job Interview
How To Ask For Interview Feedback
How To Write Your Career Summary in Resume (with Sample)
How Career Coaching Sessions Can Help You To Easily Get Your Dream Job?
What Brillio expects from an entry level talent pool in Analytics
In conversation with the Talent Specialist of Diageo
Future Talent hiring Strategy
A deep dive into Unemployment in India and how it can be solved
Difference between Data Analyst, Data Scientist & Business Analyst
Types of Job Roles Available in the Field of Data Science
Talent Specialists - What do they look for?
Headhunting - A Challenge
How to Survive the Technology Revolution in 2025?
The skills required to stay relevant in IT sector
Data Science Lead - LinkedIn emphasizes the Skills of Analytics
What does a Martech company look for in Analytics?
How Machine Learning is being used in Digital Marketing
Founder of Dextro Analytics shares what the World of Analytics want
This Analytics Professional Shares Her Expectation from the Aspirants
Lead - Data Scientist of Quantzig shares thoughts about the World of Data Science
Artificial Intelligence vs Machine Learning vs Deep Learning vs Data Science
In Conversation with the CEO of the fastest growing Analytics Company
Introduction to Machine Learning with Python
Change has to come from both sides- the Employer and the Employee
Top Web Development Trends in 2025
Role of Big Data in Digital Marketing
Basic Guide to Become Full Stack Developer from Scratch
How to Ace in the Field of Analytics?
Ultimate 6 Steps to Search Job in India
Basic Guide to HTML & CSS – The Fundamentals of Web Development
CSS Frameworks - Bootstrap – Integrated HTML/CSS with JS Integration
6 Bootstrap Tools and Playground – One-stop shop for all Web Developmental Needs
Trends and Tools of JavaScript in 2025
Basics of Javascript
Most important Python Libraries for Data Science
Dive deep into eClerx's World of Analytics and Data Science
Introduction to ES6
4 Myths & Truths about Resume | What is Resume?
MERN V/S MEAN Stack -Difference Between
Need of constructor overloading
A constructor is a method in a class that is called as soon as the object of that class is created. Sometimes, we are required to initialize objects in different forms. This can be achieved using constructor overloading.
For example, sometimes we need to initialize an object with default values, and other times we need to declare them with specific values. In these cases, constructor overloading comes handy.
Consider a program below that creates a class Rectangle having three constructors:
- Rectangle()
- Rectangle(length)
- Rectangle(length, breadth)
As you can see in the program, these constructors have the same name they differ in the number of arguments they contain.
Source Code
// Creating a class |
Output:
Significance of this() in constructor overloading:
this() reference in Java is used to call the default constructor from a parameterized constructor. It is important to note here that this() must be the first statement inside a constructor.
For example, In the following program inside the constructor: Rectangle(length, breadth), We have used this() reference. As a result, the default constructor would be called and values of length and breadth both would be initialized to 0.
Source Code
// Creating a class |
Output:
Some of the points that must be taken care of while doing constructor overloading are the following:
- We are not allowed to do recursive constructor overloading in Java.
- this() reference must be the first statement inside the parameterized constructor.
Conclusion
In this article, we discussed constructor overloading in Java. We discussed various examples that illustrated its working. In the end, we saw the benefits of using this() in constructor overloading.
We believe that this article has helped to improve your OOPS concepts in the Java programming language.
Social Media as a Job Platform