I met a question saying a
servlet A_servlet has implmented doGet(), doPost() and is mapped to an URL
http://blah/A_servlet, when a user accesses it, which method will be executed?
A. doGet(), B. doPost(), C. Cannot be determined based on the given info
I chose C while its answer is A. I know the default method for accessing from the URL is doGet(), but there is no info given where that servlet locates, whether its for internal or external usage. There is no info about its security setting. So I think the correct answer should be C. Am I right?
SCJA, SCJP5.0, SCBCD, SCWCD