aspose file tools
The moose likes Beginning Java and the fly likes Why Integer class has Constructor Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply 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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Why Integer class has Constructor
 
Similar Threads
final reference variables
Doubt regarding Wrapper Constructor
Why a final instance variable needs to be initialized ?
static and final keyword in constructors
why wrapper simple object making not working?