What is the difference between double and float variables in java?



What is the difference between double and float variables in java?..

Answer / Vivek Bhagat

"The main difference lies in their precision and storage. A double variable uses 8 bytes of memory and can store up to 15 decimal digits accurately, while a float variable uses 4 bytes of memory and can only store up to 7 decimal digits."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Define how objects are stored in java?

1 Answers  


What is visibility mode?

1 Answers  


Are arrays primitive data types?

1 Answers  


What is the replace tool?

1 Answers  


What happens if I remove static from main method?

1 Answers  


what is the difference between thread and runnable types? : Java thread

1 Answers  


What is java developer skills?

1 Answers  


When a byte datatype is used?

6 Answers  


What are the important features of Java 8 release?

1 Answers  


What are the ways in which a thread can enter the waiting state?

1 Answers  


What is qms certification?

1 Answers  


What is java abstraction with example?

1 Answers  


Categories