Java MCQ - English
Decrement operator, −−, decreases value of variable by what number?
1
2
3
4
Answer : A
View More Related Question
1) If a=20 and b=15 then the statement x=(a>b) ? a:b; will assign value of x.
2) If a and b are integers, then for a=14 and b=4 what will be the value of expression a/b.
3) 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");
}
}
4) What will be the values of x, y and z after execution of the following statements?int x, y, z;
x=9;
y=10;
z=++x=y++;
5) Select from among the following character escape code which is not available in Java.