What is difference between in the following statements
String name = "Tiger";
final String name ="Tiger";
Although the String
class is final
class, why do we need to create a String "CONSTANT" variable as final?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…