0
Reference Types and Value Types ~~ { Java VS C++ }
Can anyone explain me the reference types and value types of Java by drawing analogy with the C++ language. I am comfortable with the same topic in C++ but I couldn't get the code snippet given in the tutorials for JAVA. Thanks in Advance
1 ответ
+ 3
Value types (value on the Stack):
- byte - 8 bit
- short - 16 bit
- int - 32 bit
- long - 64 bit
- float - 32 bit
- double - 64 bit
Reference types (reference on the Stack, real value on the Heap):
- Classes, Interfaces, Objects, Strings, Arrays, Lists, Dictionaries...