0
Strange question in java playground
I met this question many times here. Please help me to understand it. What the heck does it mean? âClass constructor returns 1, if an object has successfully created and 0, when something went wrong.â And the correct answer is âFalseâ All punctuation are original.
3 Answers
+ 1
I haven't come across whether or not constructors return a value if the object was created successfully, if the correct answer is "false" then java might not deal with errors this way.
+ 1
Constructor in java doesn't return anything. It's purpose is only to create object
0
Oh, after your sentence iâve get an idea of this question. Thank u.
Am i right that questuon is bad way formulated or itâs just my poor english?