I think this is the least-often-used type of class in
Java. At least for me. I don't recall if I've ever had a legitimate use for it, other than to
test the concept. I think that when they came up with inner and nested classes, they just got the idea that they might as well let you declare a class
anywhere. I suppose I might use a local class if I had a class that was small & simple enough to be an anonymous class, but I needed to use it more than once inside a method. Maybe I need to add a method to an existing class, then
use the method. However I'm a big fan of keeping methods short, so it's hard for me to imagine a good example where I would use this. Probably I'd just make the class a member class instead.