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

22nd Jul 2017, 8:15 AM
Antoreep Jana
Antoreep Jana - avatar
1 Answer
+ 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...
22nd Jul 2017, 10:17 AM
Boris Batinkov
Boris Batinkov - avatar