Is Java pass-by-value or pass-by-reference?
Anonymous
Actually, everything in Java is pass-by-value. Objects are not passed by reference, but rather, object references are passed by value. In a language like Java that has no such thing as a dereference, this is a subtle but important distinction. I'm usually wary in interviews when the interviewer tries to push these sorts of subtle "gotchas" in an interview when really a coding example will show whether or not you understand the underlying concept rather than the nitpicky vocabulary.
Check out your Company Bowl for anonymous work chats.