+ 3

Can constructor be final?

2nd May 2016, 1:16 PM
Василь Євсеєнко
Василь Євсеєнко - avatar
8 ответов
+ 7
No. Unlike methods, constructors can take only access modifiers. Constructors cannot be abstract, final, native, static, or synchronized.
23rd Jun 2016, 2:18 PM
manny kung
manny kung - avatar
+ 1
A Java constructor is implicitly final and implicitly static.
18th May 2016, 11:53 AM
James Flanders
0
no
11th Jun 2016, 10:16 PM
Jemo Mgebrishvili
Jemo Mgebrishvili - avatar
0
no
22nd Jun 2016, 3:52 PM
gandhiyash
0
yes
20th Jul 2016, 10:35 AM
Ali Veli Veli
Ali Veli Veli - avatar
0
no, un constructeur ne peut pas avoir le modificateur "final"
11th Aug 2016, 11:04 AM
Kamdem Dhalson
Kamdem Dhalson - avatar
0
no constructor can be overrided in subclasses, or flying
11th Aug 2016, 2:32 PM
dat vu
dat vu - avatar
0
No,because it cannot be inherited same as "class"
28th Sep 2016, 4:17 AM
Kamogelo Michael Ditinti
Kamogelo Michael Ditinti - avatar