Home / CSE MCQs / Spring MCQs :: Spring AOP, AspectJ Support, Scripting

CSE MCQs :: Spring MCQs

  1. Which of the following is advice supported by Aspect Annotation?
  2. A.
    @Before
    B.
    @After
    C.
    @AfterReturning
    D.
    All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Which advice is executed only when joint point returns or throws an exception?
  4. A.
    @Before
    B.
    @After
    C.
    @AfterReturning
    D.
    @AfterThrowing

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Special compiler used during weaving
  6. A.
    jvm
    B.
    gcc
    C.
    ajc
    D.
    none of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. How to inject Spring bean into domain objcts
  8. A.
    AOP
    B.
    XML
    C.
    AspectJ
    D.
    Java Based

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Lightweight java scripting language executing java fragments
  10. A.
    JRuby
    B.
    Groovy
    C.
    BeanShell
    D.
    All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. XML element to specify the property values for scripting bean
  12. A.
    lang:property
    B.
    bean:property
    C.
    script:property
    D.
    None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Annotation used to declare an introduction
  14. A.
    Before
    B.
    After
    C.
    @DeclareParents
    D.
    None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Is the following pointcut expression correct?

    execution(* ArithmeticCalculator.*(..))
  16. A.
    Yes
    B.
    No
    C.
    If every target class is in same package
    D.
    Depends where target class is located

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. Dynamic-language-backed bean with some configurations
  18. A.
    Refreshable bean
    B.
    Beanshell
    C.
    Scripting Beans
    D.
    Inline Script

    View Answer

    Workspace

    Discuss Discuss in Forum