Set - 4

Question 31 :

How does Java handle integer overflows and underflows?

Answer :

It uses those low order bytes of the result that can fit into the size of the type allowed by the operation.

Question 32 :

What is the Vector class?

Answer :

The Vector class provides the capability to implement a growable array of objects

Question 33 :

What modifiers may be used with an inner class that is a member of an outer class?

Answer :

A (non-local) inner class may be declared as public, protected, private, static, final, or abstract.

Question 34 :

What is an Iterator interface?

Answer :

The Iterator interface is used to step through the elements of a Collection.

Question 35 :

What is the difference between the >> and >>> operators?

Answer :

The >> operator carries the sign bit when shifting right. The >>> zero-fills bits that have been shifted out.