Java Programming: 10 - Reference and Value types

Pubblicato il: 10 giugno 2011
sul canale di: CodeMonkeyCharlie
81,944
773

In this tutorial we look at the difference between value types (primitives) and reference types (objects).

Primitives are passed by value, so when passed to a method, you aren't manipulating the original data, but a copy of that data.

Objects, on the other hand, are passed by reference, so you have the ability to change objects through that reference inside of methods.


In questa pagina del sito puoi guardare il video online Java Programming: 10 - Reference and Value types della durata di ore minuti seconda in buona qualità , che l'utente ha caricato CodeMonkeyCharlie 10 giugno 2011, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 81,944 volte e gli è piaciuto 773 spettatori. Buona visione!