constructor is automatically make by jvm when we make constructor then jvm not make..why? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

constructor is automatically make by jvm when we make constructor then jvm not make..why?

6th Sep 2016, 1:18 PM
adarsh
2 Antworten
0
Whenever a program is run. it always checks for the Constructor if have provided then program uses the constructor defined by u but when u don't provide the constructor program uses the default constructor provided by Java
6th Sep 2016, 3:35 PM
Sonu Mishra
Sonu Mishra - avatar
0
so,why constructor is important for java?. what is the need of default constructor?
6th Sep 2016, 3:40 PM
adarsh