What will be the output of the program?
  class Test
{
p

Home | Discussion Forum
Taiyari24Hour

What will be the output of the program?

  class Test
{
public static void main(String [] args)
{
int x=20;
String sup = (x < 15) ? "small" : (x < 22)? "tiny" : "huge";
System.out.println(sup);
}
}



View More Related Question

2) Which of these statements are incorrect?

3) What will be the output of the program?

  class Test
{
public static void main(String [] args)
{
int x=20;
String sup = (x < 15) ? "small" : (x < 22)? "tiny" : "huge";
System.out.println(sup);
}
}

4) When the operators are having the same priority, they are evaluated from ………………………….. in the order they appear in the expression.

5) What will be result of the result of the expression -14%-3

UP Gk Online Test

taiyari24hour.com

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