Skip to content
CodeKruPro

Changing a parameter inside a method

QuizEasyJava onlyAsked in: Infosys

What does this print?

static void change(int n) {
    n = 99;
}

int n = 5;
change(n);
System.out.println(n);
Choose one answer.

to answer and keep your progress. Reading is free for everyone.