✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
What is the output of this program?
public class Test { public static void main(String[] args) { int nb = 4; nb = incrementByTwo(nb); System.out.println("nb = " + nb); }
public static int incrementByTwo(int num) { num = num + 2; return num; }}