What is the output of this program?
class array_output
{
Home | Discussion Forum

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++;
}
}
}

View More Related Question

2) What is the output of this program?

class Modulus
{
public static void main(String args[])
{
double a = 25.64;
int b = 25;
a = a % 10;
b = b % 10;
System.out.println(a + " " + b);
}
}

3) What is the output of this program?

class dynamic_initialization
{
public static void main(String args[])
{
double a, b;
a = 3.0;
b = 4.0;
double c = Math.sqrt(a * a + b * b);
System.out.println(c);
}
}

4) What will be the output?

public class Test
{
public static void main(String args[])
{
int a = 42;
double b = 42.25;
System.out.print((a%10)+" "+(b%10));
}
}

5) What is the output of this program?

class mainclass
{
public static void main(String args[])
{
char a = 'A';
a++;
System.out.print((int)a);
}
}

UP Gk Online Test

taiyari24hour.com

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