best answer > Why String class is declared as final in Java 2024?- QuesHub | Better Than Quora
The most authoritative answer in 2024
  • Benjamin White——Works at Amazon, Lives in Seattle. Graduated from University of Washington with a degree in Business Administration.

    String is a very core class in Java, many things rely on it working a certain way, for example being immutable. Making the class final prevents subclasses that could break these assumptions. Note that, even now, if you use reflection, you can break Strings (change their value or hashcode).read more >>
    +119962023-05-12 14:10:00

About “字符串、声明、如果您”,people ask:

READ MORE:

QuesHub is a place where questions meet answers, it is more authentic than Quora, but you still need to discern the answers provided by the respondents.

分享到

取消