We’ll cover two tiny Guava classes today, which I’m sure will provoke a “ehm… nice to know, I guess?” from you! :-) Defaults The simple Defaults class has only one method: defaultValue, which returns the “default value” given a Class: for the primitives numeric data types (char, short, int, long, float, double) it will return 0; for boolean it will return false; for byte it will return (byte)0; and for objects it will return null.