Biology Forums - Study Force

Science-Related Homework Help Computer Studies Topic started by: kaarnold98 on May 5, 2020



Title: What is i printed in the following code?public class Test { public static void main(String[] args) ...
Post by: kaarnold98 on May 5, 2020
What is i printed in the following code?

public class Test {
public static void main(String[] args) {
int j = 0;
int i = j++ + j * 5;
System.out.println("What is i? " + i);
}
}


▸ 5

▸ 1

▸ 0

▸ 6


Title: What is i printed in the following code?public class Test { public static void main(String[] args) ...
Post by: kiyomika on May 5, 2020
Content hidden