Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Which options are correct ?

 
Rakesh Jhamb
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the exam asks the following questions :-
1) Which HTTP method should be used for uploading a file to the server?
a) POST b) PUT....
then which option is right and why.

2) What is the root element of web.xml ?
Suppose this is a fill in the blank question, then
which one is right in this case
<web-app> or web-app
Thanks is advance...
 
Faisal Khan
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Veenue,
In this first case the correct answer is POST, since you will be sending binary data etc.
In the second case, the exam questions tend to specify how we should write the answer (from my experience of the SCJP and practice questions). If it does not specify I would personally enter <web-app>
hth
 
Tom Wolve
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Imho the http-method for uploading files is PUT.
Greeetings
Tom
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic