Prev Next

Java / Data types

How primitive variables passed to methods - by value or by reference?

In Java, primitive variables are passed to methods by value. If the passed value changes in the method, it does not change the original value.

More Related questions...

Show more question and Answers...


Comments & Discussions