Top News

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.




Post a Comment

Previous Post Next Post