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

Home | Discussion Forum

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

View More Related Question

1) What will be the result of the expression of 8|8.

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

5)

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

UP Gk Online Test

taiyari24hour.com