Skip to content

Instantly share code, notes, and snippets.

@maripiyoko
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maripiyoko/f10e4cc572a002468059 to your computer and use it in GitHub Desktop.
Save maripiyoko/f10e4cc572a002468059 to your computer and use it in GitHub Desktop.
Blog post Java reference about null
for(int i=0; i < numMember; i++) {
Sushi sushi = new Sushi(); // 勝手にランダムな寿司が出来上がるものとする
dishes.add(sushi);
sushi = null; // ここでどうなる?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment