Showing posts with label 8 Basics. Show all posts
Showing posts with label 8 Basics. Show all posts

Monday, August 31, 2015

Data Types In Java



Hi All...!

Today I'm going to show you what are the "Data Type" we can use in Java programming, In Java there are two types of data types. One is "Primitive Types" or "8 Basics" and other type is "An Unlimited Number Of Object Type"


Primitive Types Or 8 Basics


Following 8 data types are known as primitive types or 8 basics,

  1. byte
  2. short
  3. int
  4. long
  5. float
  6. double
  7. char
  8. boolean

Note


When we type any of above data type in our Java program we must use only simple letters.



Unlimited Number Of Object Types (Non - Primitive)


For this type "String" is a good example. You will get to know about these data type in future.



8 Basics Or Primitive Data Types Chart




In my next post I will show you how to use these data types in Java programs.