Home Interview Questions and Answers Core Java Interview Questions and Answers For Freshers and Experience Part-22

core-java27. 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.

128. 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.

129. Is sizeof a keyword?

The sizeof operator is not a keyword.

You may also like

Leave a Comment