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 Badass: Making Users Awesome this week in the Game Development 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