Skip to content
Advertisement

Differences among various bool types?

What are the differences among bool, boolean and Boolean in Java/Android?

Advertisement

Answer

bool does not seem to exist, at least I can’t find references to it.

boolean is a primitive boolean type, not an object.

Boolean is the wrapper object for a boolean.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement