In Java, can “void” be considered a primitive type?

后端 未结 7 1011
-上瘾入骨i
-上瘾入骨i 2021-01-17 10:21

I\'ve noticed eclipse JDT uses void as a primitive type. Can this be considered correct?

7条回答
  •  有刺的猬
    2021-01-17 10:49

    as I know, void its not a primitive type. However they have this constant in the class Type for reflection reasons!

提交回复
热议问题