Tag: web technology

Questions Related to web technology

  1. The before() method will print 1 2

  2. The before() method will print 1 2 3

  3. The before() method will print three numbers, but the order cannot be determined

  4. The before() method will not compile

  5. The before() method will throw an exception at runtime


Correct Option: E
  1. Hibernate Architecture

  2. Struts Architecture

  3. MVC Architecture

  4. Web Architecture


Correct Option: C
  1. the normal class representation with a dotted arrow pointing at the template parameter classes

  2. the normal class representation but shaded grey.

  3. the normal class representation with a dotted outline and the names of its parameter classes listed on the top right-hand corner.

  4. the normal class representation with a rectangular box in its top left-hand corner.

  5. Its a trick question - parameterized classes can't be specified in the UML notation.


Correct Option: C
  1. The _jspService() method is called from the generated servlet's service() method.

  2. jspInit() is only ever called on the first request to a JSP instance.

  3. jspDestroy() is only ever called on the last request to a JSP instance.

  4. All servlet methods are accessible from the jspInit() method.

  5. You cannot override or provide a no-parameter init() method in a JSP page.


Correct Option: A,D
  1. A request is sent with the HTTP method HEAD.

  2. A request is sent with the HTTP method POST.

  3. A request is sent with the HTTP method GET.

  4. The parameter fullName is the only parameter passed to the web server in the request URL.

  5. The parameters fullName and sbmButton are passed to the web server in the request URL.

  6. The parameter fullName is the only parameter passed to the web server as part of the request body.


Correct Option: C,F
  1. doGet()

  2. doPost()

  3. doConnect()

  4. doOptions()

  5. doHead()

  6. doRequest()


Correct Option: A,B,D,F
  1. If the equals() method returns true, the hashCode() comparison == might return false

  2. If the equals() method returns false, the hashCode() comparison == might return true

  3. If the hashCode() comparison == returns true, the equals() method must return true

  4. If the hashCode() comparison == returns true, the equals() method might return true

  5. If the hashCode() comparison != returns true, the equals() method might return true


Correct Option: B,D