logo

Crowdly

Quel sera l'affichage du programme ci-dessous? Justifiez votre réponse en indiqu...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Quel sera l'affichage du programme ci-dessous? Justifiez votre réponse en indiquant la différence entre les paramètres des types de base et les tableaux en ce qui concerne l’impact de la modification de leur valeur à l’intérieur d’une méthode.

public static void main(String[] args) {

int a = 1;

int[] b = {11};

modifier(a, b);

System.out.print(a + " : " + b[0]);

}

public static void modifier(int x, int[] y) {

x = 3;

y[0] = 33;

}

More questions like this

Want instant access to all verified answers on cmontmorency.moodle.decclic.qc.ca?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!