Ask Question
8 July, 18:31

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++) ?

+1
Answers (1)
  1. 8 July, 22:10
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers