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

I need help asap it’s due midnight
Please HELP!!!!!!!!!!!! Here is the graph that represents a function f. Which equation represents the function?​
An architect is drafting plans for a new supermarket. There will be a space 144 inches long for rows of NESTED shopping carts (Think how you "stack" the shoppin
Can someone answer this question please
On January 1, 2013, Jones Inc. issued a $100,000 face value bond for proceeds of $97,654. On June 30, 2013, Jones sent checks to the bondholders for the first c
f(x) = 3x2 – x + 5; g(x) = 2x – 3. find f(x)-g(x)​
¿Que es un agente oxidante?​
What is the missing number? 3 8 -2 7 4 5 1 10 12 3 The missing number is...
What causes the frequent migration of animals in Africa? O A. European colonization B. Changes to natural resources O C. Global climate changes O D. Civil war
Need help asap please and thank you