Which of the following statements are true?
1) The following statement will produce a result of 1. System.out.println( -1 >>>2);
2) Performing an unsigned left shift (<<< on a negative number will always produce a negative number result
3) The following statement will produce a result of zero, System.out.println(1 >>1);
4) All the Java integral types are signed numbers
I got the above question from marcus green mock
test 3.
The answer for the above question they quoted as 3.
my answer is 3 and 4.I read that all
java integral types are signed numbers.But in the answer they are telling that char is unsigned.
My doubt, char is one of the integral type or not?