bob jacosin wrote:is it possible to use the method-local inner class as return type of the method where the inner class is in?
No but you can return the super type, or pass it as a parameter to a method that accepts its supper type or assign it to a instance variable ( of a type that is super class of your local class). If there is any outside reference to the local class object after the method finishes it will still be accessible.