Home Interview Questions and Answers Advanced Java Interview Questions and Answers For Freshers and Experience Part-16

advanced java139. What Checkbox method allows you to tell if a Checkbox is checked?

getState().

140. What state is a thread in when it is executing?

An executing thread is in the running state.
141. What are the legal operands of the instanceof operator?

The left operand is an object reference or null value and the right operand is a class, interface, or arraytype.

142. How are the elements of a GridBagLayout organized?

The elements of a GridBagLayout are of equal size and are laid out using the squares of a grid.

143. What an I/O filter?

An I/O filter is an object that reads from one stream and writes to another, usually altering the data in some way as it is passed from one stream to another.

144. If an object is garbage collected, can it become reachable again?

Once an object is garbage collected, it ceases to exist. It can no longer become reachable again.

You may also like

Leave a Comment