File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Why Integer class has Constructor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Why Integer class has Constructor" Watch "Why Integer class has Constructor" New topic
Author

Why Integer class has Constructor

Haricharan Ramachandra
Greenhorn

Joined: Feb 16, 2004
Posts: 28
Hi All

I have a question regarding Integer class, which is a Wrapper class,

I was going thru the API and found that Integer class is defined as public final class, so if it is final why dose it have a constructor, and how can we use that constructor if we can't instanciate the Integer class, as it is marked final according to the API.

please clarify.

~Hari


Haricharan Ramachanra<br />SCJP 1.4<br />javaworks
Haricharan Ramachandra
Greenhorn

Joined: Feb 16, 2004
Posts: 28
Sorry i got confused, final means it cant be extended but can be instanciated. so i got it resolved
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why Integer class has Constructor
 
Similar Threads
final reference variables
Doubt regarding Wrapper Constructor
Why a final instance variable needs to be initialized ?
why wrapper simple object making not working?
static and final keyword in constructors