Core Java - Interview Questions and Answers


  1. How does Java handle integer overflows and underflows?
    It uses those low order bytes of the result that can fit into the size of the type allowed by the operation.
  2. What is the difference between the >> and >>> operators?
    The >> operator carries the sign bit when shifting right. The >>> zero-fills bits that have been shifted out.
  3. Is sizeof a keyword?
    The sizeof operator is not a keyword.

« Prev   [ Page 22 of 22  Jump...

Jump to page : 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 |