Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

What do you mean by immutable ? How to create an immutable object ?
Immutable objects means the value of that object can not be modify by applying operations on them. Java Provides the String class to create the mutable string objects.

String s = new String("Immutable string.");