How many times can classes be nested within a class?

前端 未结 6 1309
时光说笑
时光说笑 2020-12-31 13:49

I came across this questions on one of the online Java Tests. The options were 4,5,8 and any number of times.

I have only used one inner class, but have never tried

6条回答
  •  梦毁少年i
    2020-12-31 14:10

    Hmmm. I know that the online Java test you refer to is a lousy one. Does that count?

    (This is the kind of limit that is irrelevant in practical experience. A similarly ridiculously question would be, "What is the maximum length of a function in bytes?")

提交回复
热议问题