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

A patient may feel you are impatient if you do what?
Who was the frontrunner in european exploration
Find the most suitable system of coordinates to describe cylindrical shell of height 10 determined by the region between two cylinders with the same center, par
A right triangle ABC has sides /AB/ =9cm, /BC/=12cm find /AC/ and angles ACB and ABC if angle BAC= 90°​
How do you find the value of a bond, and why do bond prices change?
Match each transformation of f(x) with its description.
In 2016, 600 individuals became infected with the dengue virus in a town of 60,000 people in Brazil. Out of those infected, 50 people died. The total number of
Write an equation in point-slope form for the line that has a slope of 9/8 and contains the point (9,−5). please help I am in desperate times right now
Paladin Furnishings generated $4 million in sales during 2016, and its year-end total assets were $2.4 million. Also, at year-end 2016, current liabilities were
Simplify (y + 1) (y + 1)