the question is... Why a Integer value is not working like a reference value?, it is working like a primitive valueBecause you changed the value of the reference you were passed. That doesn't do anything to the original Integer, it just makes the reference point to a different Integer.
If Integer had a method to change its value, which it doesn't, and you had called it, which you didn't, you would have seen that change in the original Integer. But none of those things is true.
valor = (valor + valor4);
The Integer class is immutable.That's not the reason. Even if he had used a mutable class instead of Integer he wouldn't have seen what he expects.
933581 wrote:The question was completely answered almost two months ago.
I think that this answers your question.
>Probably for the same reason I don't, and a lot of people don't: They don't actually show that you are competent in the area they're certifying. People "earn" them by cramming for the exam, just so that can put another acronym on their resume, and a week later they've forgotten what they supposedly learned. And they've probably never used 90% of those concepts in practice.
A prime example why I don't value these certifications.
I would like to know why you don't value those certifications.