Analyst Integration Question:

Can you please explain the difference between value type and a reference type?

Integration Programmer Interview Question
Integration Programmer Interview Question

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.


Previous QuestionNext Question
Explain about critical section?Explain heap and stack in a process?