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) What will be the value of "x" after execution ?

int x = 0, y = 0 , z = 0 ;
x = (++x + y-- ) * z++;

3) If a=20 and b=15 then the statement x=(a>b) ? a:b; will assign value of x.

4) Decrement operator, −−, decreases value of variable by what number?

5) Which of the following can be operands of arithmetic operators?

UP Gk Online Test

taiyari24hour.com

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