File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes constructor !!! a doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "constructor !!! a doubt " Watch "constructor !!! a doubt " New topic

constructor !!! a doubt

vaibhav srivastava

Joined: Feb 24, 2008
Posts: 14
hi all..
can anyone please help me in understanding y a constructor cant be made final or abstract ?
thanks in advance.

A computer once beat me at chess, but it was no match for me at kick boxing.<br />
Deepak Chopra
Ranch Hand

Joined: Jul 23, 2007
Posts: 433

By Default, we can not OVERRIDE a constructor..think about final.

Why we use final ?:

When we don't want a particular thing to be Overridden..and we know that we can not override constructor..!! so there is no need to mention that..!!

Why we use abstract? :

Abstract is forcefully Override, Again if something can not be overridden that means it can not be abstract..

Final conclusion you can say that..constructors are implicitly final.

Thanks and Regards,
SCJP 1.5 (90%), SCWCD 1.5 (85%), The Jovial Java, java.util.concurrent tutorial
vaibhav srivastava

Joined: Feb 24, 2008
Posts: 14
thanks a lot sunny...
I got it !
I agree. Here's the link:
subject: constructor !!! a doubt
It's not a secret anymore!