What is the difference between data types and literals in Java?

前端 未结 10 1680
旧时难觅i
旧时难觅i 2021-01-30 08:59

What is the difference between data types and literals in Java?

10条回答
  •  清酒与你
    2021-01-30 09:40

    I don't know that they have enough in common to be able to identify differences, but data types are things like int, float[], Object, and literals are something like 1, { 1.0f, 2.0f}, "abcdef".

提交回复
热议问题