Saved Bookmarks
| 1. |
What Type Of Parameter Passing Does Java Support? |
|
Answer» In JAVA the ARGUMENTS (primitives and objects) are always passed by value. With objects, the object REFERENCE itself is passed by value and so both the original reference and parameter copy both REFER to the same object. In Java the arguments (primitives and objects) are always passed by value. With objects, the object reference itself is passed by value and so both the original reference and parameter copy both refer to the same object. |
|