Boolean.class is a reference to the instance of Class that represents the class Boolean.
Boolean.TYPE is a reference to the instance of Class that represents the primitive type boolean.
It is useful when using reflection.
For instance, to be able to specify which constructor do you want:
Notice that getDeclaredConstructor's argument is of type Class[]. Without Boolean.TYPE we were not able to specify the constructor taking a boolean.
By the way boolean.class references the same object as Boolean.TYPE
Reflection is not on the exam.
[ April 04, 2003: Message edited by: Jose Botella ]