Complete the code to declare an integer variable with its default value.
int number = [1];In Java, the default value for an int variable is 0.
Complete the code to declare a boolean variable with its default value.
boolean isActive = [1];The default value for a boolean in Java is false.
Fix the error in the code by completing the declaration of a String variable with its default value.
String name = [1];In Java, the default value for a String (which is an object) is null.
Fill both blanks to declare a double and a char variable with their default values.
double price = [1]; char grade = [2];
The default value for double is 0.0 and for char is the null character '\u0000'.
Fill all three blanks to declare variables of types long, float, and boolean with their default values.
long count = [1]; float rate = [2]; boolean flag = [3];
Default values: long is 0, float is 0.0f, boolean is false.
