How can we make a class immutable..?

Have no modifiers, so basically it's just a class that holds values (i'm guessing) and you can use them, also you can use the final keyword on the variables so they can't be changed, hope that helps.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.