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

What type of car engine is best for cold weather.
How did shays rebellion influence the constitution.
Two coordinates that have the vertical distance of 1.5
Sad life is a hallucination. So is the happy one.
will mark brainly!! Solve [tex]\sqrt{x} 4x-7+3=0[/tex] There are no solutions in the set of real numbers. x = 4 x = -4 x = 0
How are slope and derivatives related.
1. As a group, write down two challenges in terms of sustainability you would face when developing a sustainable food supply for a Martian colony (or any area t
Which of the following is equivalent to 3 1/4 2 5/4 2 3/4 2 1/4 2 11/4
PLEASE HELP!!! Solve for x: 3 over quantity x minus 4 equals 7 over x
depreciation expense is ______ net income in a statement of cash flows prepared using the indirect method because it ______.