Asked by Abbey Marshall on Mar 10, 2024
Verified
If a formal parameter is a variable of a primitive data type, then after copying the value of the actual parameter, there is no connection between the formal and actual parameter.
Primitive Data Type
Primitive data type is a basic type of data provided by programming languages, such as int, float, and char, which represent numbers, characters, or boolean values.
Formal Parameter
A formal parameter is a variable used in a function or method definition, representing the inputs with which the function/method can work.
Actual Parameter
The actual value or variable that is passed into a function or method call.
- Differentiate actual parameters from formal parameters during method calls.
Verified Answer
SC
Storm Cartier Feliciano
Mar 10, 2024
Final Answer :
True
Explanation :
Primitive data types are passed by value, so the formal parameter receives a copy of the value of the actual parameter. Any changes made to the formal parameter will not affect the actual parameter.
Learning Objectives
- Differentiate actual parameters from formal parameters during method calls.