Java Programmin Programming and Technical Programming

what is the output of the following program..

class demo
{
public static void main( string arg[])
{
int i=10;
if(i==10)
{
System.out.print(i);
int i=20;
}
System.out.print(i);
}

}

Read Solution (Total 4)

Java Programmin Other Question

WAP to display *****
*
*****
*
*****
In the Byteland country a string “S” is said to super ASCII string if and only ifcount
of each character in the string is equal to its ASCII value.
In the Byteland country ASCII code of ‘a’ is 1, ‘b’ is 2...’z’ is 26.
Your task is to find out whether the given string is a super ASCII string or not.