+91-85006-22255
What will be the output of the following program?
public class LifeTime { public static void main(String[] args) { if (true) { int x = 10; System.out.println("Value of X = " + x); x++; } System.out.println("Value of X = " + x); }}
Topic: Lifetime Of Variable In Java
Read this topic
Open In App