Multiple choice technology programming languages

Is String class final?

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The String class in Java is declared final, meaning it cannot be extended or subclassed. This design choice ensures that String's immutability guarantees and thread-safety properties cannot be compromised through inheritance.