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

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

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

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

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

  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

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

  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

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