Integer Datatype in Java

Get Into Code provides you with free C++ and Java Course in Hindi/Urdu and also provides you the opportunity to practice your skills to be perfect. In the previous video we have discussed about the overall Datatypes in Java. In this video we are going to discuss about Integer Datatype in Java in detail.
Integer Datatype
Integer Datatype Variable can store integer values. It cannot store decimal values. To Create Integer Variable you have to write int followed by your variable name and ends with semicolon.
Syntax
int variable_name;
short variable_name;

It is further divided into following types according to their size.

  • Byte
  • Short
  • Int
  • Long

Watch the Below Video For More Guideline

No comments

Powered by Blogger.