what are the variable initialized rule in Java
Answers
Answered by
1
In Java, every variable in a program must have a value before its value is used. Member variables (both static and instance) are initialized implicitly by default: Most primitives except boolean are default initialized to zero (e.g., the value for integer type is 0, 0.0f is for float type, and 0.0d is for double type)
Answered by
0
In Java, every variable in a program must have a value before its value is used. Member variables (both static and instance) are initialized implicitly by default: Most primitives except boolean are default initialized to zero (e.g., the value for integer type is 0, 0.0f is for float type, and 0.0d is for double type)
marks as brainliest
Similar questions
Social Sciences,
1 month ago
English,
1 month ago
Social Sciences,
1 month ago
Math,
3 months ago
Science,
3 months ago
CBSE BOARD X,
9 months ago
English,
9 months ago