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)

public class Test  
{
public static void main(String args[])
{
System.out.print(""=="");
System.out.print(" ");
System.out.print("A"=="A");
System.out.print(" ");
System.out.print("a==A");
}
}

3) What will be the value of "x" after execution ?

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

4) Select from among the following character escape code which is not available in Java.

5) In Java, the ……………………… is used to access the instance variables and methods of class objects.

UP Gk Online Test

taiyari24hour.com

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