aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "constructor !!! a doubt " Watch "constructor !!! a doubt " New topic
Author

constructor !!! a doubt

vaibhav srivastava
Greenhorn

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 />
Sunny Jain
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
Greenhorn

Joined: Feb 24, 2008
Posts: 14
thanks a lot sunny...
I got it !
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: constructor !!! a doubt