I was recently asked this question in an interview.
when a class with inner class is compiled there are two class files that are created. eg
class A{ class B{}}
So in this case 2 class files will be generated. A.class and A$B.class.
Why '$' symbol is used and not any other symbol? Does this question have a technical answer or is it subjective?