Computer Science, asked by ag7688066676, 2 months ago

what are the variable initialized rule in Java

Answers

Answered by Laraleorapathi
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 anjanimasta00
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