Question) Can you compare boolean to an integer?
Options)
Explanation) In Java boolean has value true or false and not 1 or 0 or anything else. So you just can't do it(Watch out C folks!).
Options)
- True
- False
Explanation) In Java boolean has value true or false and not 1 or 0 or anything else. So you just can't do it(Watch out C folks!).
No comments:
Post a Comment