InterviewSolution
Saved Bookmarks
| 1. |
What will be the output of the program? |
| Answer» An exception is thrown because in the code String s4 = args[4];, the array index (the fifth element) is out of bounds. The exception thrown is the cleverly named ArrayIndexOutOfBoundsException. | |