wood burning stoves 2.0*
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
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
static and final keyword in constructors
final reference variables
why wrapper simple object making not working?
Doubt regarding Wrapper Constructor
Why a final instance variable needs to be initialized ?