Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

passing Array between methods

 
Heba Mahmoud
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


the output is
0 2
7 7


how the array passed to the method is changed , we only pass a copy from the array ?? not the array itself.
as what happen in the int x ??pass on the copy of x and x remains the same in the main method.
 
Heba Mahmoud
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks

the description is so clear :)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic