SyntaxFix
Write A Post
Hire A Developer
Questions
Short answer...yes. You can use an anonymous class when you initialize a variable. Take a look at this question: Anonymous vs named inner classes? - best practices?