Android or Java class naming with $ symbol

后端 未结 2 1579
旧时难觅i
旧时难觅i 2021-02-19 10:51

I\'m reviewing a certain project and I see that there are many classes with the same name, but with a dollar ($) symbol at the end + increasing number. For example



        
2条回答
  •  盖世英雄少女心
    2021-02-19 11:05

    The dollar sign is used by the compiler for inner classes. I thought it would be strange to manually make classes/files with those names though: As far as I know it's a compiler thing.

提交回复
热议问题