CrazyEngineers Archive
Old, but evergreen and popular discussions on CrazyEngineers, presented to you in read-only mode.
@rengaraj • 05 Dec, 2009
Sir / madam,
My question is

The width in bits of double primitive type in Java is --. Select the one correct answer.

a. The width of double is platform dependent
b. 64
c. 128
d. 8

Advance Thanks,
R.Rengaraj
{Java Certification Quiz}
{On this forum my 20th Question.}
@sarveshgupta • 05 Dec, 2009 It is 64 bits with a range of -2^63 to 2^63 - 1

that is answer is b. 64

Am I correct?
@Mahesh Dahale • 05 Dec, 2009
sarveshgupta
It is 64 bits with a range of -2^63 to 2^63 - 1

that is answer is b. 64

Am I correct?
yes you are correct !!!
@rengaraj • 05 Dec, 2009 Sir,
Thanks for your reply.
R.Rengaraj
@Karshil Sheth • 11 Feb, 2020

Its 8 bytes. [ 64 bits] As double is used to store floating point values and is used in static and constant methods. 

@Divisha Madupalli • 12 Feb, 2020

The answer is 8 bytes in a 64-bit system. Double in Java is used for representing the decimal numbers. For double type there are or you can have at least 15-16 bits. The default value for decimals in Java is double if you don't give the specific units. Double uses 1 bit for sign, 11 bits for exponent and 52 bits for the mantissa. A value having a range within 1.2E-38 to 3.4E+38 can be assigned to float variables. 

@Mohana Chandra • 14 Feb, 2020

In java,double uses 8 bytes of memory ,which is equal to 64 bits , since 1byte=8 bits.

2.2k views

Related Posts

@madhuri s · Sep 26, 2011

hello, i am madhuri...... i need latest topics for the technical seminar for 8th sem BE, computer sciance branch thank you
2.3k views

@Guneet Khanuja · Feb 27, 2014

Rasilant Technologies was founded by Shiladitya Mukhopadhyaya and Sahil Anand in the year 2005. Rasilant Technologies is a Mumbai-based Radio Frequency Identification (RFID) company that provides technology and consulting solutions...
8.8k views

@Kaustubh Katdare · Apr 19, 2015

A lot of people want to know about the WhatsApp business model. The app is so popular that it's already crossed about 800 million active users and yet, it's offered...
11.9k views

@Abhijit Dey · Jun 4, 2013

While regular browsing and surfing on the internet, I came upon something fascinating. With an interest in window shopping and preparing a wish list for things I would like to...
1.6k views

@bhargav khanpara · Oct 15, 2013

WHY SOMETIMES WE GIVING CHOCK TO VEHICLE
4.5k views