Should my Beer-v1 directory be placed inside the webapps or the webapps/ROOT directory? Using http://localhost:8080/Beer-v1/form.html only loads the page when my Beer-v1 directory is placed inside ROOT.
Either Beer-vi directory be placed inside the webapps or the webapps/ROOT directory is fine. But did you create appropriate WEB-INF directory and web.xml file in the Beer-v1 directory when you placed inside the webapps? Good luck!
D is not correct. Why? The Java language has three mechanisms dedicated to ensuring proper initialization of objects: instance initializers (also called instance initialization blocks), instance variable initializers, and constructors. It is initializers doing that, not default constructor initializing the instance variables declared in the class.