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

Semrush - keyword research tool

Create your online store today with Shopify

Turn ChatGPT, Claude, Gemini, And CoPilot Into Your Personal Assistant, Business Coach, Content Creator, And More

AFFILIATE MARKETING Your all-in-one performance engine Manage affiliates, creators, and customer referrals in one unified platform—turning every partnership into measurable growth

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

Disclosure: My content contains affiliate links.

43,239 questions

56,142 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 197 views
1 answer 337 views
1 answer 304 views
1 answer 273 views
1 answer 278 views
1 answer 286 views
1 answer 260 views
...