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

drag the correct description to tell whether the graph represents a function.
Who was Albert Pike? Why was he sent to Oklahoma?
Juan buys a crystal sculpture priced at $753.00. If the sales tax is 4%, what will be the total cost including tax?
I NEED HELP WITH MATH
PLEASE HELP ASAP! The circumference of a circle is 84 cm. What is the area, in square centimeters? Express your answer in terms of pi.
FINEFOODS Agent required for nationwide distribution. Some experience in food retail an advantage. Refrigerated van provided. FINEFOODS requires an agent to
You are willing to supply the most cookies at the price. price, and consumers will demand the most cookies at the price lowest, highest highest, lowest
PLEASE HELP!!! What is the definition of 'gist'?
2x + 3 > 13 x= 0 is this true? O True O False
A machine produces 312 bolts in 30 minutes at the same rate many minutes would it take to produce 260 bolts