Tag: web technology

Questions Related to web technology

  1. Setter Injection

  2. Method Injection

  3. Constructor injection

  4. Interface Injection


Correct Option: A,C
  1. Yes,always.Spring framework will understand automatically when it will not find applicationcontext.xml

  2. No,never this can happen

  3. Yes,by specifying a element named “contextConfigLocation" for the listener class "org.springframework.web.context.ContextLoaderListener"

  4. Yes,if we use it with JSF


Correct Option: C
  1. byName

  2. byFields

  3. byInterface

  4. byType


Correct Option: A,D
  1. singleton

  2. prototype

  3. global session

  4. response


Correct Option: D
  1. XmlWebApplicationContext

  2. RequestXmlApplicationContext

  3. ClassPathXmlApplicationContext

  4. FileSystemXmlApplicationContext


Correct Option: B
  1. Global Scope

  2. Application Scope

  3. Session Scope

  4. Request Scope


Correct Option: A
  1. Gives an excpetion

  2. Blank Page comes up

  3. If no navigation rule matches a given action, then the current page is redisplayed

  4. Error code 404 appears


Correct Option: C
  1. FacesContext.getCurrentInstance().getViewRoot()

  2. FacesContext.getCurrentInstance().responseComplete()

  3. FacesContext.getCurrentInstance().renderResponse()

  4. FacesContext.getCurrentInstance().release()


Correct Option: C