In: Computer Science
1) Java uses a right brace to mark the end of all compound
statements. What are the arguments for and against this
design?
2) What a role does the symbol table play in a complier.
1) Right brace always terminates a compound .The argument are used for right braces to terminates compound is its simplicity.
In a program when we find the right brace then its matching left brace is not always obvious. Because all multiple structure and controlled statements are end with the right brace.
2)Symbol table plays the role in compiler as a database for the compilation process.Symbol table is a data structure created and maintaind by compiler for storing the information such as function name,objects and classes etc.