Ask 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 allowing arithmetic expressions, as in c++) ?

+5
Answers (1)
  1. 9 July, 23:36
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers