• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

s this , a true example of pass by value ?

 
naved momin
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is this , a true example of pass by value ?
if not , please modify the code and explain it . thanks

 
Paul Clapham
Sheriff
Posts: 21155
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If it's Java code and it's passing a parameter, then it must be an example of "pass by value". I don't need to look at the code to say that. That's because parameters are always passed by value in Java.
 
naved momin
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Clapham wrote:If it's Java code and it's passing a parameter, then it must be an example of "pass by value". I don't need to look at the code to say that. That's because parameters are always passed by value in Java.

what is pass by reference then ....???
use the same program to explain please
 
Luigi Plinge
Ranch Hand
Posts: 441
IntelliJ IDE Scala Windows
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic