what is the main purpose of the default constructor provided by the compiler
Answers
Answered by
1
....here is your answer...
Attachments:
Answered by
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
Chemistry,
7 months ago
Social Sciences,
7 months ago
History,
7 months ago
Biology,
1 year ago
Science,
1 year ago