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

why is red onions purple
The sum of a number and 18 times its reciprocal is 11. Find the number(s). Let x represent the unknown number. The Reciprocal of x is____?
How do you do this algebra question
A certain test is worth 155 points. How many points (rounded to the nearest point) are needed to obtain a score of 65%?
What is the electron configuration of helium
How is carbon dioxide obtained?
What are enzymes also known as? What do enzymes do to biological reactions? What do we call the special shape on an enzyme molecule? What are enzymes made of? W
what is the sum of 6 7/8 + 4 5/8
What are enzymes also known as? What do enzymes do to biological reactions? What do we call the special shape on an enzyme molecule? What are enzymes made of? W
What is 2.333333 in fraction form