Which of these statements are incorrect?

Home | Discussion Forum
Taiyari24Hour

Which of these statements are incorrect?



View More Related Question

2) What will be the output after compiling and running following code?

public class Test
{
public static void main(String... args)
{
int x =5;
x *= 3 + 7;
System.out.println(x);
}
}

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

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

4) If int x=15; y=20; what will be the value of x after executing the following statement

 x=(x

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

UP Gk Online Test

taiyari24hour.com

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