🎴 Flashcard Mode
Java Programming Fundamentals
Card1 / 9
Mastered0
Review0
QuestionClick to flip
When an instance of a class, or object, is specified as a parameter to a method, a reference to the said object is passed to the method.
AnswerClick to flip back
A
True
💡 Explanation:
In Java, objects are always passed by reference, not by value. When you pass an object to a method, you're passing a reference to the same object in memory. Any changes made to the object's state inside the method will be visible to the caller. However, reassigning the reference itself inside the method won't affect the caller's reference.