I know that java doesn't support static Top-Level classes, and only nestled classes can be static.
But, wherever I read about these nestled static classes, it says you have to initialize these classes with the "new" keyword.
Is this not instancing? if yes, how are we instancing "static" classes?
Does this mean we can have multiple instances of this class running simultaneously? Can we store these on variables just like non-static classes?
If this is true, then is the "static" modifier just a modifier used to access the nestled class without instantiating the container class?
Any Light shed on these questions are very welcome. Thanks!
EDIT: This question is different than the questions it has been marked duplicate against as I am NOT asking what the static modifier does to an object, nor am I asking if static classes exist. I know what static nestled classes are, and how static objects behave, but the static nestled class'es peculiar behaviour of being instantiatable by using the"new" keyword (which is used to create an instance of an object). Static classes can usually not be created instances of in OOP, and I was asking is this different in java. can you create instances of static classes in java.