If I have for example a class along with a helper class to do some of its functionality, does it make sense to make it as an inner class.
public class F
Yes, the advantage of using inner class is it can access members of outer class.In your case , if you think your FooHelper
is not to be used by any other class,you can make it a inner class.
To check out the utility of inner class, go through the examples of AWT. Anonymous inner classes are widely used in event handlers.