(C) Compiler Error
Explanation: Parameters in Java is passed by value. So the changes made to y do not reflect in main().
Quiz of this Question
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.