Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

1 java - data type

1,533 views

Published on

Data Type in Java

Published in: Education
  • Be the first to comment

1 java - data type

  1. 1. Java – Data Type Organized By: Vinay Arora Assistant Professor CSED, Thapar University www.slideshare.net/aroravinay
  2. 2. Vinay Arora CSED Data type/s for the variable/s  Variables are nothing but reserved memory locations to store values.  This means that when you create a variable you reserve some space in memory.  Based on the data type of a variable, the operating system allocates memory and decides what can be stored in the reserved memory.  There are two data types available in Java: Primitive Data Types Reference/Object Data Types
  3. 3. Vinay Arora CSED Primitive Data Types  There are eight primitive data types supported by Java. Primitive data types are predefined by the language and named by a keyword.  Byte  Short  Int  Long  Float  Double  Boolean  Char
  4. 4. Vinay Arora CSED Primitive Data Types (Conti…)
  5. 5. Vinay Arora CSED Primitive Data Types (Conti…)
  6. 6. Vinay Arora CSED Primitive Data Types (Conti…)
  7. 7. Vinay Arora CSED Primitive Data Types (Conti…)
  8. 8. Vinay Arora CSED Primitive Data Types (Conti…)
  9. 9. Vinay Arora CSED Reference Data Type
  10. 10. Vinay Arora CSED Java Literals
  11. 11. Vinay Arora CSED Thnx…

×