Why Integer Class in Final in Java ?

Integer class is a wrapper for int. If it is not marked final, then any other class can extend it and modify the behavior of Integer operations. To avoid this Integer wrapper class is marked as final.



You May Interest

How Do You Debug Code in JSP ?

Creating a Map with Reverse View and Lookup in Java

How Can We Analyze the Dependencies in Java Classes and Packages ...

What are the Differences Between Internal and External Iterator i ...

What is an Output Comment in JSP ?