@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.

Related Posts

I thought of compiling a list of the coolest and the best whatsapp group names that you've been using for your respective groups. For the sake of convenience, we'll stick...
A simple good bye email or last working day mail ain't cool! We've some awesome templates that you can use. If you're looking for an amazing Last Working Day email...
Hello CEans, How to convert CGPA (10 Point Scale) to Percentage? Please help!
I heard many students are having a trouble registering on the TCS Portal, when it's quite straightforward actually. If you have problem in attaching photos or CV, Use internet explorer...
What is IES or Indian Engineering Services Exam? Union Public Services Commission (UPSC) conducts the Engineering Services Exam or ESE 2016 is an entrance exam for graduates who wish to...