Difference between default constructor and no argument constructor in java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Difference between default constructor and no argument constructor in java

19th Apr 2017, 11:52 AM
hAdiA rAshId
hAdiA rAshId - avatar
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.
19th Apr 2017, 10:15 PM
Ismail
Ismail - avatar