Why does the JVM initialise the data fields with default values if no constructors are defined in any class? What is the need for such a procedure of calling the default constructor?
Jishnu
160
Posting Pro
Recommended Answers
Jump to Post> Why does the JVM initialise the data fields with default values
AFAIK, design decision by the language implementors. Also makes sense since I wouldn't want the members of my newly created instance to have a value of 'undefined'.> What is the need for such a procedure of …
All 2 Replies
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
Jishnu
commented:
Thank you!
+2
Jishnu
160
Posting Pro
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.