1.

Mention default values of the following data types .Boolean and long​

Answer»

data type:The default value of boolean(primitive) data type is FALSE.The Boolean data type is used to store only TWO possible VALUES: true and false. This data type is used for SIMPLE flags that TRACK true/false conditions.It specifies one bit of information, but its "size" can't be defined precisely.long data type:The default value of long data type is 0L.The long data type is a 64-bit two's complement integer. Its value-range lies between (-2^63) to(2^63 -1).Other primitive data type default values and size: DataType DefaultValue Defaultsizeboolean false 1 bitchar '\u0000' 2 bytebyte 0 1 byteshort 0 2 byteint 0 4 bytelong 0L 8 bytefloat 0.0f 4 bytedouble 0.0d 8 byte



Discussion

No Comment Found