Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doubt from Head First Servlets & JSP

 
Deepak Yadav
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I the Head First Servlets & JSP 1.4
page no 202

one statement is there :
And since you're a Java programmer you know that even a final variable can still be manipulated unless it's immutable.

Please clearify me this line with a proper example
 
Remko Strating
Ranch Hand
Posts: 893
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A final variable which has a reference to an object.
You can change the properties of the object, but you can't assign the variable to a different object
 
Vijay Bharghav bheemineni
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Deepak, for posting this query even I had the same doubt. Thanks Remko for the explanation.

Vijay Bheemineni.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just in case. You need SCJP to pass SCWCD
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic