Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
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 Respostas
+ 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?