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

write an equation that is perpendicular to the line y = 2x + 13?
An object with mass 60 kg moved in outer space. When it was at location < 13, -19, -3 > its speed was 3.5 m/s. A single constant force < 220, 320, -120
The Habsburg Empire did all of the following EXCEPT A. take control of Hungary, Croatia, and Slovonia. B. lose their Holy Roman Empire in Germany. C. remain a c
lara has a tin of peanuts cashews and pecans she will pick a second nut without looking. how many outcomes are there for her two picks?
Hey, need some help reverent A. respectful B. respect C. reply D. to spoil
what does como eres tu mean in spanish?
If f(x) is 4x-3 what is (f^-1of) (10)
Hey, need some help reverent A. respectful B. respect C. reply D. to spoil
write an equation that is perpendicular to the line y = 2x + 13?
If 52 x equals 7800 y what does 1 x equal? What is the maths equation?