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

The Internet may best be compared to a/an
what word phrase can you use to represent the algebraic expression 3m
Help please! A group of students are wandering around a room. When their teacher claps, the students sit down wherever they are. This situation best models the
f(x) = 3x + 9, g(x) = 5x2 Find (f + g)(x).
What is the purpose of Healthy People 2010?
Movement of any particle or molecule from higher concentration to lower concentration is called _____. osmosis pinocytosis diffusion phagocytosis
#1. The best exercise is the one that you enjoy the most. State True or False. #2. If you work out with weights, and are not very flexible, it is not necessary
what are the roots of -12x^2 11x − 3 = 0?
In the short story “They're Made Out Of Meat” by Terry Bisson, how is the entire plot revealed?
Which theory of matter states that all particles of matter are in constant motion?