Multiple choice technology web technology

There exists a direct API in JSP to verify that the browser accepted the cookie?

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

There is no direct method in the standard JSP or servlet API to explicitly verify whether a browser has accepted cookies. Developers typically must set a test cookie in one request and check for its presence in the subsequent request.