+ 1
Does constructor return any value?
I meet this question in the challenge of Java;The answer is yes;but I don't think so;what do you think.
2 Answers
0
constructor doesn't returns any value but it has return statement without any value
class A{
A(){
return;
}
}
0
mo bai da lao