View Full Version : Why String is final in Java?
bhavnasingh482
07-27-2017, 10:01 AM
Hi friends,
I would like to know,
Why String is final in Java?
programmers.io
03-28-2022, 12:02 PM
The String class in the java. lang package is a final class for just this reason. The String class is so vital to the operation of the compiler and the interpreter that the Java programming (https://programmers.io/java/) system must guarantee that whenever a method or object uses a String they get exactly a java.
Powered by vBulletin® Version 4.2.5 Alpha 2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.