+ 3
Can a constructor be final?
3 ответов
+ 3
No!
Since every class has it's own constructor, you can't really override constructors anyway, so final would do nothing. (If you don't ever write a constructor for a class, Java generates an empty one!)
If you want to make it so you can't extend a class, you can make the class itself final.
You can also make constructors private if that is what you want.
+ 1
ya final keyword is like constant so u can't inherit the constructor
0
what is null?