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

Plz help im begging A light wave traveling through medium 1 strikes a boundary with medium 2 at a 45° angle. The light then enters the second medium and refract
HELP PLEASE HURRY!! Find (2.25 x 10^30)(4.41 x 10^4) using a calculator. Write what your calculator displayed and explain what it means in scientific notation.
please help im so bad at math
Simplify this algebraic expression completely. 8y - 2(у + 4) ОА, бу – 4 ОВ. бу + 4 ОС. бу – 8 OD. бу + 2
Find the sum of 3x2−7x+5 and x2−4x−9, subtract 5x2−8x−7.Question 4 options:−x2−3x+3−x2−19x−11x2−3x+3−x2+3x−3
PLSSSSSS ANSWER QUICK
Solve |x+ 3|- 1 = (x + 2)^2 by graphing. The solutions are x = and x =
Solve for x: 2/7(x-2) = 4x
Describe the cultural and artistic Paleolithic to the Neolithic
Bruce needs to add 6 3/4 cups of sugar to his cookie dough. He only has a 3/4-cup measure. How many scoops of sugar does Bruce need to add?