What is the output of this program?
class asciicodes
{

Home | Discussion Forum

What is the output of this program?
class asciicodes
{
public static void main(String args[])
{
char var1 = 'A';
char var2 = 'a';
System.out.println((int)var1 + " " + (int)var2);
}
}

View More Related Question

2) What will the output of the following program?

public class Test{
public static void main(String args[])
{
float f = (1 / 4) * 10;
int i = Math.round(f);
System.out.println(i);
}
}

3) What is the output of this program?

class area
{
public static void main(String args[])
{
double r, pi, a;
r = 9.8;
pi = 3.14;
a = pi * r * r;
System.out.println(a);
}
}

4) What is the output of this program?

class array_output
{
public static void main(String args[])
{
char array_variable [] = new char[10];
for (int i = 0; i < 10; ++i)
{
array_variable[i] = 'i';
System.out.print(array_variable[i] + "" );
i++;
}
}
}

5) What will be the output?

if(1 + 1 + 1 + 1 + 1 == 5)
{
System.out.print("TRUE");
}
else
{
System.out.print("FLASE");
}

UP Gk Online Test

taiyari24hour.com

Study 2 Online Says....
Kindly log in or signup.