Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

datatypes in java

There are 8 types of primitive data types:
 - 'boolean' data type.
 - 'byte' data type.
 - 'char' data type.
 - 'short' data type.
 - 'int' data type.
 - 'long' data type.
 - 'float' data type.
 - 'double' data type.
Comment

java datatypes

byte	1 byte	//Stores whole numbers from -128 to 127
short	2 bytes	//Stores whole numbers from -32,768 to 32,767
int	    4 bytes //Stores whole numbers from -2,147,483,648 to 2,147,483,647
long	8 bytes	//Stores whole numbers from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
float	4 bytes	//Stores fractional numbers. Sufficient for storing 6 to 7 decimal digits
double	8 bytes	//Stores fractional numbers. Sufficient for storing 15 decimal digits
boolean	1 bit	//Stores true or false values
char	2 bytes	//Stores a single character/letter or ASCII
Comment

PREVIOUS NEXT
Code Example
Java :: java store hexadecimal value 
Java :: java gitignore 
Java :: intellisense for eclipse java 
Java :: how to check base64 in java 
Java :: find maximum in array java 
Java :: how to run individual test in java maven 
Java :: java initialize string array 
Java :: android sqlite select query 
Java :: compile java 
Java :: android studio download 
Java :: Using enum values as string literals 
Java :: replace regex group() java 
Java :: simple java code 
Java :: java wait(timeout) 
Java :: string length in android studio java 
Java :: java variables 
Java :: how to set boolean to false if null java 
Java :: make textview invisible android 
Java :: java input string with spaces 
Java :: java inheritance 
Java :: json array to list in java 
Java :: lombok maven plugin 
Java :: error: package android.support.v7.app does not exist 
Java :: press enter in robot java 
Java :: how to get internet speed in android programmatically 
Java :: How do you count characters in a string array in Java? 
Java :: how to call a function in java 
Java :: How to check if a string is in alphabetical order in java 
Java :: how to get request json web token in next js 
Java :: enum values to string array 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =