Analyst Integration Question:

What is the difference between a value type and a reference type?

Tweet Share WhatsApp

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.

Download Integration Programmer PDF Read All 87 Integration Programmer Questions
Previous QuestionNext Question
What is difference between & and && operator?How do you get the last digit of an integer?