Sec 4: String Handling
84) What is the meaning of immutable in terms of String?

85) Why string objects are immutable in java?
86) How many ways we can create the string object?

87) How many objects will be created in the following code?

88) Why java uses the concept of string literal?
89)How many objects will be created in the following code?
90) What is the basic difference between string and stringbuffer object?
91) What is the difference between StringBuffer and StringBuilder ?
92) How can we create immutable class in java ?

93) What is the purpose of toString() method in java ?
Last updated