Computer Science, asked by GeekyJS, 9 months ago

what is the difference between true and "true" ?​

Answers

Answered by Anonymous
4

Answer:

Edit: I also understand that Boolean.TRUE is a wrapper for the primitive true, my question then is - why does the primitive boolean accept Boolean.TRUE as a value? For instance,

boolean boolVar = Boolean.TRUE;

seems to be a valid statement

Answered by anindyaadhikari13
3

Answer:-

The main difference between true and "true" is that true is a boolean literal whereas "true" is a String literal.

Similar questions