Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Java
  3. Question
Java

How to call a constructor?

Asked by Papuii Colney Chauhan Oct 13, 2022 1.3K views 1 answer
Share

About this question

 After reading about theory and Q&As about constructors I am struggling to fully understand them. I know how to call a constructor and how to call a method, but I cannot rationalise this.

A constructor has to be called directly when ...

Constructor overloading will be done when ...

Methods will be called directly by calling the default constructor when ...

Your answer

1 Answer

More Java discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Java Blogs

Guides, tips and career advice on Java from JanBask experts.