Is Java "pass-by-value" or "pass-by-reference"?

I'm bit confused in understanding whether Java is "pass-by-value" or "pass-by-reference". I know that Java passes objects as references. Can someone please explain?


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion