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

Problem: Caitlyn and three of her friends went to the carnival. Each person paid $1.15 to ride the ferris wheel and $2.50 for a funnel cake. What was the total
what is a tower and what is it for
A circular swimming pool has a diameter of 18 m, the sides are 4 m high, and the depth of the water is 4 m. How much work (in Joules) is required to pump all of
A company has earnings per share of $9.90. Its dividend per share is $.65, its market price per share is $126.72, and its book value per share is $103. Its pric
Calculate the molar solubility of CaSO4. Ksp = 7.10 x 10-5
Dan agrees to build a house for a newlywed couple. The couple buys a plot of land, but then finds out that they cannot build the house in accordance with local
what is the decimal multiplier to decrease by 68%?
121 is 22% of what number
which is the closest antonym for the word prone?​
Please help me out ......