✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
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; }}
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!