adplus-dvertising
frame-decoration

Question

If an object is passed by reference, the changes made in the function ___________

a.

Are reflected to the main object of caller function too

b.

Are reflected only in local scope of the called function

c.

Are reflected to the copy of the object that is made during pass

d.

Are reflected to caller function object and called function object also

Answer: (a).Are reflected to the main object of caller function too

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. If an object is passed by reference, the changes made in the function ___________

Similar Questions

Discover Related MCQs

Q. Constructor function is not called when an object is passed to a function, will its destructor be called when its copy is destroyed?

Q. When an object is returned by a function, a _______________ is automatically created to hold the return value.

Q. Is the destruction of temporary object safe (while returning object)?

Q. How to overcome the problem arising due to destruction of temporary object?

Q. How many objects can be returned at once?

Q. It is necessary to return the object if it was passed by reference to a function.

Q. How many objects can be passed to a function simultaneously?

Q. If an object is passed by address, will be constructor be called?

Q. Is it possible that an object of is passed to a function, and the function also have an object of same name?

Q. Passing an object using copy constructor and pass by value are same.

Q. What is reference to an object?

Q. Whenever an object is assigned to a variable or passed to a method, ________________

Q. Does use of object reference in assignment or passing means copy of the object is being used?

Q. Is there any explicit use of pointers in java that would be applicable to objects?

Q. Can a super class object give reference to a subclass method?

Q. If a reference variable is declared final then, _________________

Q. Which of the members are referred by this pointer usually (Java)?

Q. How to refer to method of nested class?

Q. How many objects can be referenced from same variables?

Q. Java handles memory dynamically and references are deleted as soon as they are out of scope.