Search Your Dot Net Topic

Friday, 13 March 2020

Data-Types




Data Types in Java, Primitive Data Types
Data Types in Java


What is Data Types?

Data Types is associated with type of data. Data type is set limit of size and limit of values that can be stored. Data Type is only deciding behavior of variable like Numeric Data Type will not  act like String / Character data type.



There are two types of Data Types:


  • Primitive Data Types
  • Non-Primitive Data Types





Primitive Data Types:


Following are types of primitive data types-

  • byte
  • short
  • int
  • long
  • float
  • double
  • boolean
  • char









Non-Primitive Data Types:


Following are types of primitive data types-


  • String
  • Array





No comments:

Post a Comment