Computer Science, asked by muskaankhan29, 1 year ago

what is the main purpose of the default constructor provided by the compiler ​

Answers

Answered by shelu72
1
....here is your answer...
Attachments:
Answered by honeyket3112
1

Java does not initialize any local variable to any default value. So if you are creating an Object of a class it will call default constructor and provide default values to Object. Default constructor provides the default values to the object like 0, null etc. depending on the type.

Similar questions
Math, 1 year ago