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

Simplify a + 2c - 5b - c + a - b
If f(x)2-2x and g(x)=6x+4, for which value of x does (f+g)(x)=0
What can communities do to address the goals of Healthy People 2010?
A microscope shows you an image of an object that is 140 times the object’s actual size. So the scale factor of the enlargement is 140. An insect has a body len
Movement of any particle or molecule from higher concentration to lower concentration is called _____. osmosis pinocytosis diffusion phagocytosis
The sum of 5 and a number is 19. The sentence translates to
Proofs Given: JK = 2.5cm, NO = 2.5cm Prove: line JK is congruent to NO
Need help with these. 1. Labor is an unlimited resource. True or false? 2. In economic terms, “land” refers only to physical plots of ground. True or false? 3.
Which of the following best explains why what we know about cells is called a theory and not a law?
I don't know this I need help