• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doubt in final keyword with array

 
Vaibhav Chauhan
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Code:

final int[]array={1,2,3};

what is the role of final here.....as the content of the array can be changed.If the reference to an object is made final, it can not refer another object....What is the use of final in above case ??


[HENRY: Fixed subject header]
[ August 18, 2006: Message edited by: Henry Wong ]
 
Vaibhav Chauhan
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry i posted the ques. under wrong subject.....
.
.
.
 
Neelesh Bodas
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Vaibhav Chauhan
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks neelesh....i got it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic