What is the default for Boolean in Java?

Asked 2 years ago, Updated 2 years ago, 128 views

What is the default for Boolean in Java?

boolean java default-value

2022-09-22 22:14

1 Answers

The default value for Boolean (Object) is null The default value for boolean (primitive) is false.


2022-09-22 22:14

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.