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
Math,
4 months ago
Hindi,
4 months ago
Math,
10 months ago
Political Science,
10 months ago
Math,
1 year ago