Explain why the highlighted statements will result in an illegal action.
What will be an ideal response?
You cannot declare the same variable name more than once within a block, even if a block contains other blocks. When you declare a variable more than once in a block, you are attempting to redeclare the variable. In this code, the second declaration of aValue causes an error because you cannot declare the same variable twice within the outer block of the method. Even though it appears within a new block, the third declaration of aValue is also invalid for the same reason.
You might also like to view...
What is a method of removing repetitive elements from a file so that the file requires less storage space and therefore less time to transmit over a network?
A) Compression B) Decompression C) Defragmentation D) Encryption E) None of the above
What must an organization create in order to maintain a sufficient understanding of risk?
Fill in the blank(s) with the appropriate word(s).