InterviewSolution
Saved Bookmarks
| 1. |
What Is The Difference Between A Value Type And A Reference Type? |
|
Answer» A VALUE type is more OPTIMIZED type and always immutable e.g. primitive int, long, double and FLOAT in JAVA, while a reference type POINTS to a object, which can be mutable or Immutable. You can also say that value type points to a value while reference type points to an object. A value type is more optimized type and always immutable e.g. primitive int, long, double and float in Java, while a reference type points to a object, which can be mutable or Immutable. You can also say that value type points to a value while reference type points to an object. |
|