Created
February 24, 2011 02:21
-
-
Save jaredcacurak/841633 to your computer and use it in GitHub Desktop.
Pass by what?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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