New course! Every coder should learn Generative AI!
Try a free lesson0
Difference between default constructor and no argument constructor in java
1 Answer
+ 5
They are the same. When an object is instantiated if has no constructor declared Java creates an empty (default) constructor with no arguments.