top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Java:Can we create a user defined immutable class like String?

+1 vote
142 views
Java:Can we create a user defined immutable class like String?
posted Sep 5, 2013 by Vinay Shukla

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Yes,by making the class final and its data members as private,final.

answer Sep 5, 2013 by Arvind Singh
...