Set - 6

Question 41 :

Why are the methods of the Math class static?

Answer :

So they can be invoked as if they are a mathematical code library.


Question 42 :

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

Answer :

getState()


Question 43 :

What state is a thread in when it is executing?

Answer :

An executing thread is in the running state.


Question 44 :

What are the legal operands of the instanceof operator?

Answer :

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


Question 45 :

How are the elements of a GridLayout organized?

Answer :

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