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

Help please this I'd for geometry
What are the 4 main products for southeast
The discovery of gold in Transvaal contributed to the start of _____?the Anglo-Boer WarWorld War IIWorld War Ithe Peloponnesian War
how do you now 11/33 is a simplest form
If the angles of a triangle are in ratio 2:3:7 find the measure of all the angles of the triangle
List the perfect squares between 100 and 500 that are even numbers.
The discovery of gold in Transvaal contributed to the start of _____?the Anglo-Boer WarWorld War IIWorld War Ithe Peloponnesian War
What is the slope of (2,3) , (6,7)
Help please this I'd for geometry
Use the order of operations and the digits 2,4,6 and 8 to create an expression with a value of 2