Types of Java constructors in Java

Java Programming Language >   Class, Object and Methods in java >   Constructor  

Short Question

499


Answer:

There are two types of constructors in Java:

  1. Default constructor (no-arg constructor): A constructor is called Default Constructor when it does not have any parameter.
  2. Parameterized constructor: A constructor which has a specific number of parameters is called a parameterized constructor.


This Particular section is dedicated to Question & Answer only. If you want learn more about Java Programming Language. Then you can visit below links to get more depth on this subject.




Join Our telegram group to ask Questions

Click below button to join our groups.