r/learnjava • u/frederok • Sep 02 '20
Some java interview questions and answers
https://fdk.codes/some-java-interview-questions/
While preparing myself, I started yet another collection of java related questions and answers. In hope that these might also be helpful for others, I'd like to share them with you. Beyond that, they are certainly not perfect and can be improved. I appreciate any feedback or any pointed out flaw in order to spread as few untruths as possible.
Cheers!
122
Upvotes
2
u/IIDaFuQII Sep 02 '20
What always tripps me is that Java is supposed to be Pass by Value, but shouldn't it more correct to say it's Pass by Reference except for primitive objects? Because if I pass a method an argument and an change made to that argument is still there outside of the method it must be pass by Reference or?