Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Buy a domain name - Register cheap domain names from $0.99 - Namecheap

Scalable Hosting That Grows With You

Secure & Reliable Web Hosting, Free Domain, Free SSL, 1-Click WordPress Install, Expert 24/7 Support

Semrush - keyword research tool

Boost your online presence with premium web hosting and servers

Disclosure: My content contains affiliate links.

39,872 questions

51,796 answers

573 users

What are the primitive data types range values in Java

1 Answer

0 votes
 TypesSize (bits) Minimum Maximum    Range 
 byte       8   -128   127     From +127 to -128 
char     16    0   216-1     All Unicode characters 
short     16     -215   215-1     From +32,767 to -32,768 
int     32   -231   231-1     From +2,147,483,647 to -2,147,483,648 
long     64   -263   263-1     From +9,223,372,036,854,775,807 to -9,223,372,036,854,775,808 
 float     32    2-149   (2-2-23)·2127     From 3.402,823,5 E+38 to 1.4 E-45 
double     64    2-1074   (2-2-52)·21023     From 1.797,693,134,862,315,7 E+308 to 4.9 E-324 
 boolean      --   --   --     false, true 
     


answered Mar 2, 2021 by avibootz
edited Mar 2, 2021 by avibootz

Related questions

1 answer 126 views
1 answer 267 views
1 answer 227 views
1 answer 207 views
1 answer 213 views
1 answer 216 views
1 answer 193 views
...