Computer Applications
What are the default values of the primitive data type int and float?
Values & Data Types Java
ICSE 2015
24 Likes
Answer
Default value of int is 0 and float is 0.0f.
Answered By
14 Likes
Related Questions
Which of the following is a valid java keyword?
- If
- BOOLEAN
- static
- Switch
Identify the invalid identifier from the following:
Which of the following is an escape sequence character in Java?
/n
\t
/t
//n
Assertion (A): The
boolean
data type in Java can have only two possible values:true
orfalse
.Reason (R): Boolean values in Java are stored as integers, with
true
represented by 1 andfalse
by 0.