Skip to content

Instantly share code, notes, and snippets.

@jaredcacurak
Created February 24, 2011 02:21
Show Gist options
  • Save jaredcacurak/841633 to your computer and use it in GitHub Desktop.
Save jaredcacurak/841633 to your computer and use it in GitHub Desktop.
Pass by what?
public class Main {
private static String boo;
public static void main(String[] args) {
boo = "value";
changeTheValueOf(boo);
System.out.println("passed by " + boo);
}
private static void changeTheValueOf(String value) {
value = "reference";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment