I always thought Java uses pass-by-reference. However, I've seen a blog post that claims that Java uses p