Java Scope

Suman Barik
0

 public class Main {

  public static void main(String[] args) {


    // Code here cannot use x


    int x = 100;


    // Code here can use x

    System.out.println(x);

  }

}


Post a Comment

0Comments
Post a Comment (0)