what is the difference between true and "true" ?
Answers
Answered by
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
3
Answer:-
The main difference between true and "true" is that true is a boolean literal whereas "true" is a String literal.
Similar questions
Hindi,
4 months ago
English,
4 months ago
Social Sciences,
4 months ago
Math,
9 months ago
Math,
1 year ago