Java datatypes and how to use them

Java Data types and how to use them


In this section, we will be learning Java datatype and there uses.
What is datatype, if  you have been coding in some (OOP)object oriented programming you will understand datatypes but i assume we are new no programming.
So datatype, is a collection of data value in different format for instance we want to get a data of a student like name,age,address,phone Number etc, we can't manage to store all this data in a place we need to separate them to their sweet able location were the can feet in. Let me use another instance for example in a our home we have different location were we can  store different datas for example bed room, toilet,kitchen etc, we all no the data that feet each location in our house we can't manage to put out pant or boxers in our kitchen or either can we put our dish in the toilet, so like-wise applicable to java,java is like a building  that have different data location .
We have two type of data type in java

  1. primitive datatype 
  2. abstract datatypes

for Example:
//Bytes:
byte b=3;

//Number:
short sh=100;
long lg=50000l;
float f=1.434f;
double d=22/7 or 4.000893893393903833;
//single charater
char ch='c'
//multiple character
String="Adedamola rioland"
I recommend you watch this my video tutorial because i we be posting more tutorial

-->byte is use to store byte codes like images videos etc
-->short is the smallest number alocation, it contain short number
-->long  contain more numbers than short it can contain time loops
     time milliseconds
-->Int is more spacer then long and this can store normal integer value
-->float : this can store floating point like the example i made in the tutorial
-->double: this store more floating number than float
-->char can store only single value like 'd','v','g' and deh are enclode in single quote 
-->String: this has the ability to store long text like name, address ,phone number and so on;
"Adedamola Rioland"
And it is enclose with double quotes



    let watch the tutorial and practices together like i say am just learning like you so let learn together if you  have any question u can send the i we be happy to answer or if u are give a project to develop and you don't know to to go about it just let me no we will do the tutorials together  and u we enjoy it a lot.

Comments