Ask Question
16 December, 11:21

What are the arguments both for and against the exclusive use of boolean expressions in the control statements in java (as opposed to also allowing arithmetic expressions, as in c++) ?

+2
Answers (1)
  1. 16 December, 14:28
    0
    Reliability is the major argument for the exclusive use of Boolean expressions (expressions that result to either true or false) inside control statements (i. e. if ... else, for loop). Results from control statements become reliable because Java has disallowed other types to be used. Other types, like arithmetic expressions in C+ + oftentimes include typing errors that are not detected by the compiler as errors, therefore causing confusion.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “What are the arguments both for and against the exclusive use of boolean expressions in the control statements in java (as opposed to also ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers