What is the output of the following program ?
class Numbers{
pu

Home | Discussion Forum
Taiyari24Hour

What is the output of the following program ?

class Numbers{
public static void main(String args[])
{
int a=20, b=10;
if((a < b) && (b++ < 25))
{ System.out.println("This is any language logic");
}
System.out.println(b);
}
}



View More Related Question

2) Which of the following is the correct expression that evaluates to true if the number x is between 1 and 100 or the number is negative?

3) What will be the output of the above fraction of code ?

int ++a = 100 ;
System.out.println( ++a ) ;

4) 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);
}
}

5) Which of these statements are incorrect?

UP Gk Online Test

taiyari24hour.com

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