Menu
Question Index
...

Which of the following is correct?

X: Primitive data types are passed by reference.
Y: Java only supports pass 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 .


X only
Y only
Both are correct
Both are incorrect

Doubts

Problems

Topic: Is Java Pass by Reference or Pass by Value

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App