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

write the essay on critical rationalism. Use the following headings: 1. Introduction Discuss the origin and history of critical rationalism. 2. content indicat
How do you rename 5,400 as hundreds
How to write 314,207 in word form?
a heartbeat takes 0.8 seconds how many seconds is this written as a fraction
What does it mean to describe a scientist as skeptical? Why is skepticism considered a valuable quality in a scientist?
what is the definition for the word theory
Which is the BEST explanation of Karma according to the Hindu faith? a. the religious duty one has to their fellow religious followers b. one's actions in thi
Which one is greater 8.03 or 8.3
what is the place value of 1 in the number 0.413
do you think northerners were right to stop supporting reconstruction