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

Rachel jogged along a trail that was 1/4 of a mile long. she jogged around the trail 8 times. How many mile did Rachel jogged?
which type of colony had a governor and council appointed by the king
Can you explain to me in steps how to work this problem 4(2x-2)-4=4(x-5)+32
In a survey of 300 voters, 68 said that they voted for Candidate A. How many voters can Candidate A expect to receive if the population of the town is 10,00
Joe earns $160 per week at a local market. He makes a payment of $12 per week for a new bike. He spends $75 each week on food an entertainment. Joe deposits the
I need help with 2 math questions???
What profession grew substantially with women’s participation during the Civil War? A. banking B. nursing C. governing D. cooking
0.729 rounded by the nearest tenth
What is the percent of 110 to 275
if a rock is sitting in the dirt, the normal force from the ground and________are acting on it