PUBLIC OBJECT

Does it throw?

Uh oh.

. . . . public int switchOnEnum() {
. . . . . . Dwarf dwarf = Dwarf.SLEEPY;
. . . . . . switch (dwarf) {
. . . . . . case SLEEPY:
. . . . . . . . return 0;
. . . . . . default:
. . . . . . . . throw new AssertionError("dwarf = " + dwarf);
. . . . . . }
. . . . }

Hint 1: Dwarf is an enum.
Hint 2: Dalvik is a lot better today than it was just 2 years ago.