Ask Question

Java uses a right brace to mark the end of all compound statements. What are the arguments for and against this design?

+1
Answers (1)
  1. 1 October, 17:15
    0
    The argument is for the right braces. The right braces are used for simplicity. The right brace always terminates a block of code or a function.

    The argument against right brace is that when we see a right brace in a program, we are not obvious about the location of the corresponding left brace because all or multiple statement end with a right brace.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Java uses a right brace to mark the end of all compound statements. What are the arguments for and against this design? ...” 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