Problem1: Display the value of variable

Display the value of variable

class Demo

{

public static void main(String [ ] args)

{

int a = 10;

System.out.println("a is "+a);

}

}


Output : 10


Note : Anything is coded with string is yet converted into string.


Comments

Popular posts from this blog

Day4 : Type Conversion and its type

Day12: Switch Statement

Day18: How java handles deallocation of dynamic block