---
title: "How are this() and super() used with constructors?"  
description: "How are this() and super() used with constructors?"  
author: "Sumit Kesarwani"  
published: 2014-08-26  
updated: 2020-09-17  
canonical: https://www.mindstick.com/interview/2023/how-are-this-and-super-used-with-constructors  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# How are this() and super() used with constructors?

this() is used to invoke a constructor of the same class. super() is used to invoke a superclass constructor.

## Answers

### Answer by Sumit Kesarwani

this() is used to invoke a constructor of the same class. super() is used to invoke a superclass constructor.


---

Original Source: https://www.mindstick.com/interview/2023/how-are-this-and-super-used-with-constructors

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
