- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Can you use both this() and super() in a constructor in Java?
No, you cannot have both this() and super() in a single constructor.
- Related Articles
- How can we use this and super keywords in method reference in Java?
- How to use this and super keywords with lambda expression in Java?
- Are ‘this’ and ‘super’ keywords in Java?
- Difference between super() and this() in Java
- What is the super() construct of a constructor in Java?
- Difference between super() and this() in java Program
- Super constructor in Dart Programming
- Can we call a method on "this" keyword from a constructor in java?
- What is the difference between super and this, keywords in Java?
- What happens if we call "super()" in a constructor without extending any class, in java?
- Why can't we use the "super" keyword is in a static method in java?
- Can a constructor be synchronized in Java?
- Can a constructor be overridden in java?
- Can we use "this" keyword in a static method in java?
- Why do we need a copy constructor and when should we use a copy constructor in Java?

Advertisements