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

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

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

10条回答
  •  梦毁少年i
    2021-01-30 09:45

    Data Type : it defines the memory assignment for different "types" available in java.

    source http://javawebtutorial.blogspot.in/2013/10/data-types-in-java-as-you-all-know-that.html

    Literals : Literals in java define the actual value we can using for variables, constants or to perform any operation.

    source : http://javawebtutorial.blogspot.in/2013/10/literals-in-java-literals-in-java.html

提交回复
热议问题