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

Nina: Hola, soy Nina. ¿____________________? Carlos: Me llamo Carlos. Cómo se llama él Cómo te llamas Cómo me llamo Cómo se llaman ellos
36 is 75% of what number
explain the economic policy of mercantilism and how it related to England's relationship with the American colonies
A 50​-inch board is to be cut into three pieces so that the second piece is 4 times as long as the first piece and the third piece is 5 times as long as the fir
When is the manual removal of oil by hand most likely to be used? A.) When the spill is far out at sea B.) When the oil has sunk to the bottom C.) When heavy
What is 40% of 160? A. 20 B. 40 C. 32 D. 64 E. 75
Fully classify the epithelial tissue shown in this micrograph. ________________________ keratinized epithelial tissue
What subatomic particle is most involved in making chemical bonds?
What was ray kroc's goal for the McDonald's franchise? What was his plan for success?
What percentage of Earth's surface water is potable?