Im trying to learn java, but I come across obsticle that Im already trying to understand for few days but I just don't get it I searched videos on yt checked on here but can't find right explanation that I will understand.
My question is what is point of inner classes and explanation what each type of inner classed is used for, like anonymous,local inner...
I heard some people saying it's good for encapsulation does that mean it's not that easy to access class, and also there stays namespace if I want to create normal class with same name? Also maybe if I need just single use of class in other class I just create inner then? and I should do normal classes just when I need it more then once? Generally I don't know when I should use it, I get syntax and everything I just don't see it's point, why should I use it instead just normal class.