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

I don't really understand this can someone explain this to me
Does budding have a form of asexual reproduction
Is monomial also a polynomial
HELP PICTURE IS SHOWN
John rides his horse with a constant speed of 18 miles per hour. How far can he travel 5/6 hours?
Multiply and simplify cot x(sin x -sec x)
For paramecia during sexual reproduction how is the genetic material exchanged? A. conjugation tubes break apart B. conjugation tubes split in two C. conjuga
What natural resources does the country have that are not available in North America?
how do i figure this out
In order to take quality notes, a student should have read the assigned chapter before listening to the lecture. Please select the best answer from the choic