Cuttie6734 Cuttie6734
  • 01-08-2018
  • Computers and Technology
contestada

When any ____ type (boolean, char, byte, short, int, long, float, or double) is passed to a method, the value is passed. array?

Respuesta :

tonb
tonb tonb
  • 01-08-2018

Programming languages have value types and reference types. The latter doesn't pass the value, only a reference to where the value is located. (Like a pointer in C/C++). So the answer is "value type". If the size of the value type is small, there is no performance overhead. But bigger data types (e.g., a string) would suffer from having to be copied all the time, so they are typically passed by reference.

Answer Link

Otras preguntas

Need answer asap, correct answer will get brainliest.
Answer if you know DO NOT ANSWER IF YOU DO NOT KNOW THE ANSWER what is the value of x Thank you :)
Please help with this I’m so bad at french
What are the advantages of using signal flow graph over the block diagram reduction?
Analyzing the Importance of Ethics What are some reasons that ethical principles are important in the pharmacy? Check all that apply. a. to protect the rights o
Can someone factorise this: (2a + b)2 + (a + 2b)​
Who proposed the building of the transcontinental railroad to congress?
10.What kind of circle would you need and which direction would the arrow go if you graph x < 1.5 on a number line? closed circle, arrow goes right open circ
What can one see and do at the EXICAL exhibition in Cordoba? Write your answer in English
Am I using – correctly in this sentence? She only wants the real, authentic fruit – just like how America isn’t a real home to her.