Interview Questions - Advanced Java

77.
How are the elements of a BorderLayout organized?
The elements of a BorderLayout are organized at the borders (North, South, East, and West) and the center of a container.

78.
What is the % operator?
It is referred to as the modulo or remainder operator. It returns the remainder of dividing the first operand by the second operand.

79.
When can an object reference be cast to an interface reference?
An object reference be cast to an interface reference when the object implements the referenced interface.

80.
What is the difference between a Window and a Frame?
The Frame class extends Window to define a main application window that can have a menu bar.