Can we use final keyword before constructor?

Is it possible to define final keyword before constructor.if yes then describe?

Questions by atanu_moharana

Showing Answers 1 - 0 of 0 Answers

lukeyuan

  • Feb 13th, 2008
 

no, constructor takes only access modifier such as public, protected, private or NONE. Threrefore, constructor can not be abstract, final, native,static, or synchronized.

generally, final keyword is used when we want not to override the class, or not to over ride the subclass methods, but Constructor have the methods or datamembers to activated when we instantiaed, so, final keyword should not use before constructor.... and also, it does not take final k'word before constructor..

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions