LINK:
http://www.jchq.net/mockexams/exam3.htm 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
============
Here Marcus Green's answer was just 3. I also feel that 4 is correct. If I am wrong, then can someone tell me, what does "Java Integral Type" means ???
[ November 08, 2004: Message edited by: Barry Gaunt ]