Podcast
Questions and Answers
In Java, when a method parameter values are copied to another variable and then the copied object is passed, what is this called?
In Java, when a method parameter values are copied to another variable and then the copied object is passed, what is this called?
- Pass by Value (correct)
- Pass by Reference
- Pass by Alias
- Pass by Copy
What is the term for when an alias or reference to the actual parameter is passed to the method in Java?
What is the term for when an alias or reference to the actual parameter is passed to the method in Java?
- Pass by Copy
- Pass by Reference (correct)
- Pass by Value
- Pass by Alias
When making changes to the remote variable content in Java, which type of parameter passing will affect the source variable?
When making changes to the remote variable content in Java, which type of parameter passing will affect the source variable?
- Pass by Value
- Pass by Reference (correct)
- Pass by Copy
- Pass by Alias
In Java, which method parameter passing style is used for all primitive data types?
In Java, which method parameter passing style is used for all primitive data types?
Which keyword in Java is used to create objects and leads to pass by reference when used as method parameters?
Which keyword in Java is used to create objects and leads to pass by reference when used as method parameters?
Flashcards are hidden until you start studying