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

How is the illusion of animation achieved using Sprites with multiple costumes?
For most settlers, the MAIN attraction of the western territories of the United States in the early-1800s was that A) most of the factories were there
calculate the frequency of the genotype Aa from a population that is made up of the following number of individuals 54 individuals with genotype AA 30 individ
How was the iroquois confederacy structured
how did Robert Frost's move to England affect his career?
A yardstick placed perpendicular to the ground casts a 4 foot shadow. At the same time, a grain silo casts a 34 foot shadow. Write a proportion you can use to f
What would be the equation for a line parallel to y=3x+4?
Subtract 350 Ib from 4 tons
how did mummification reflect egyptian beliefs about the afterlife? a. Egyptians believed in an afterlife in which people need their bodies b. Egyptians believe
Describe how to regroup to solve 316 - 226 what is the difference