Newsletter sign-up
View all newsletters

Enterprise Java Newsletter
Stay up to date on the latest tutorials and Java community news posted on JavaWorld

JavaWorld Daily Brew

Creating field types can not be modified after initialization



I'm trying to understand how to do this:

String type field called that can not be modified after initialization and it is visible to outside world without any getter

One int type field called that can not be modified after initialization and it is visible to outside world without any getter.