Java data types interview questions and answers

Most frequently asked Java data types interview questions and answers

Q.11. What is the difference between ‘int’ , ‘double’ and ‘float’ data types in Java?

‘int’ is used for storing integer values. float is a single -precision floating -point data type, and double is a double-precision floating-point data type .The size of the ‘int’ data type is 4 bytes(32-bit), the size of the ‘double’ data type is 8 bytes( 64 -bit) and the size of the ‘float’ data type is […]

Q.11. What is the difference between ‘int’ , ‘double’ and ‘float’ data types in Java? Read More »