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

wich terms refers to a solution with more molecules outside the cell than inside the cell A:hypertonicB:hypnoticC:equtonicD:isotonic​
Est-ce que tu étudies l'espagnol?
What is the volume of a sphere with a radius of 12units
When particles spread out due to an increase of thermal energy this is called? ​
You can do my one more task, the last one.
select all answers that apply asap
which of the following heart rates from a 30 minute workout fall in the target heart zone for a 15 year old boy
whats the boars name on animal farm
Which is the better buy? A. 3-yard piece of cotton cloth for $4.41 B. 3-foot piece of cotton cloth for $1.05
Which of the following is NOT a form of energy? Heat Electricity Light None of the Above