I was going through the mock and found the question 1 of CH 6 mock exam (pg 265) confusing:
The method doGet declares input arguments as "req" & "res" but accesses "request" in the next few lines of code. Is this correct? according to me there should be no correct answer and uncommenting anything will result in compile time error.
Can the method declare the argument names as something else and still access "request" like in the following code?