Powered by Blogger.

Data Types in Java



Data Types in Java

Here we discuss about Data Type in Java or Datatype in Java in detail.

Data Types in Java

Java provides standard data types to store information. Java is a richly typed language which gives the programmer a wide variety of data types to use.
Data type specifies the size and type of values that can be stored in an identifier.

Data types in Java are classified into two types:

Primitive

Which include Integer, Character, Boolean, and Floating Point.

Non-primitive

Which include Classes, Interfaces, and Arrays.

Data Type in Java

Data TypeDefault ValueDefault size
booleanfalse1 bit
char'\u0000'2 byte
byte01 byte
short04 byte
int04 byte
long0L8 byte
float0.0f4 byte
double0.0d8 byte



facebook
google-plus
twitter
pinterest

1 comment

  1. It is really a great work and the way in which u r sharing the knowledge is excellent.Thanks a lot! You made a new blog entry to answer my question; I really appreciate your time and effort.
    java training in chennai |
    java training institutes in chennai

    ReplyDelete

HTML Tutorial

images

About Sitesbay

This blog is related to Java Tutorial, C++ Tutorial, C Tutorial, Online Earning tips and more in very simple and easy way. Here i will try to give complete idea related to all new technology.

Java Tutorial

Java is Object oriented programming language, It is more secure and high performance language.

C++ Tutorial

C++ is also Object oriented programming language, It is more simple and easy to learn.

 
https://sitesbay.blogspot.com/?utm_medium=d2898efa59afcc0bc411921036e22b767ca37b09