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

What is the source of the Amazon River? Andes Mountains Pacific Ocean Atlantic Ocean Rio Negro
Write a dialogue on what can an ordinary citizen can do to save environment?
A bag contains 4 blue marbles, 2 black marbles, and 3 red marbles. If a marble is randomly drawn from the bag, what is probability that it is NOT black? 1/2 2/9
the product of 2x-3 and x+4 can be expressed as what
How much more does 1 1/4 pounds of beef cost than 1 1/4 pounds of turkey if Beef=$4.25 Turkey=$2.85
Why does southerners politician support seceding from the union?
Ananias first referred to Saul as Paul immediately after Saul's conversion experience. True False
writing sentences help?!?!
You hit a golf ball 90 yards. it travels three-fourths of the distance to the hole. write an equation you can use to find the distance d from the tee to the hol
Answer to this question please?