← Back to Question List
Java Code Walkthrough #32
Pre Increment Inside Print
📄 Code
Read carefully — what does this print?1public class Main {2 public static void main(String[] args) {3 int x = 3;45 System.out.println(++x);6 System.out.println(x);7 }8}