AOP interview questions

18 real AOP questions from the Spring bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is Cross-cutting concern?

Junior
  1. A.the runtime technique wrapping a bean in a generated stand-in, which is why advice is skipped on internal self-invocation
  2. B.the action an aspect takes at a chosen point, such as before, after, or around a method execution
  3. C.an expression that selects which method executions an aspect's advice should apply to
  4. D.a responsibility like logging or security that spans many modules rather than belonging to one
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.Cross-cutting concern — the action an aspect takes at a chosen point, such as before, after, or around a method execution
  2. B.Cross-cutting concern — a responsibility like logging or security that spans many modules rather than belonging to one
  3. C.Cross-cutting concern — a specific point during program execution, in this framework always a method call, where advice can run
  4. D.Cross-cutting concern — a module encapsulating cross-cutting behavior that pairs a selecting expression with an action applied across many classes
Reveal the answer + AI explanation — free account

4. What is Aspect?

Mid
  1. A.the runtime technique wrapping a bean in a generated stand-in, which is why advice is skipped on internal self-invocation
  2. B.a module encapsulating cross-cutting behavior that pairs a selecting expression with an action applied across many classes
  3. C.a responsibility like logging or security that spans many modules rather than belonging to one
  4. D.a specific point during program execution, in this framework always a method call, where advice can run
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Mid
  1. A.Aspect — a module encapsulating cross-cutting behavior that pairs a selecting expression with an action applied across many classes
  2. B.Aspect — a responsibility like logging or security that spans many modules rather than belonging to one
  3. C.Aspect — the action an aspect takes at a chosen point, such as before, after, or around a method execution
  4. D.Aspect — an expression that selects which method executions an aspect's advice should apply to
Reveal the answer + AI explanation — free account

7. What is Advice?

Mid
  1. A.a module encapsulating cross-cutting behavior that pairs a selecting expression with an action applied across many classes
  2. B.the action an aspect takes at a chosen point, such as before, after, or around a method execution
  3. C.the runtime technique wrapping a bean in a generated stand-in, which is why advice is skipped on internal self-invocation
  4. D.a responsibility like logging or security that spans many modules rather than belonging to one
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Mid
  1. A.Advice — a specific point during program execution, in this framework always a method call, where advice can run
  2. B.Advice — an expression that selects which method executions an aspect's advice should apply to
  3. C.Advice — a module encapsulating cross-cutting behavior that pairs a selecting expression with an action applied across many classes
  4. D.Advice — the action an aspect takes at a chosen point, such as before, after, or around a method execution
Reveal the answer + AI explanation — free account

10. What is Pointcut?

Mid
  1. A.the action an aspect takes at a chosen point, such as before, after, or around a method execution
  2. B.a module encapsulating cross-cutting behavior that pairs a selecting expression with an action applied across many classes
  3. C.an expression that selects which method executions an aspect's advice should apply to
  4. D.a specific point during program execution, in this framework always a method call, where advice can run
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Mid
  1. A.Pointcut — the runtime technique wrapping a bean in a generated stand-in, which is why advice is skipped on internal self-invocation
  2. B.Pointcut — an expression that selects which method executions an aspect's advice should apply to
  3. C.Pointcut — a specific point during program execution, in this framework always a method call, where advice can run
  4. D.Pointcut — a module encapsulating cross-cutting behavior that pairs a selecting expression with an action applied across many classes
Reveal the answer + AI explanation — free account

13. What is Join point?

Mid
  1. A.a specific point during program execution, in this framework always a method call, where advice can run
  2. B.the action an aspect takes at a chosen point, such as before, after, or around a method execution
  3. C.a module encapsulating cross-cutting behavior that pairs a selecting expression with an action applied across many classes
  4. D.a responsibility like logging or security that spans many modules rather than belonging to one
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Mid
  1. A.Join point — a responsibility like logging or security that spans many modules rather than belonging to one
  2. B.Join point — a specific point during program execution, in this framework always a method call, where advice can run
  3. C.Join point — the runtime technique wrapping a bean in a generated stand-in, which is why advice is skipped on internal self-invocation
  4. D.Join point — the action an aspect takes at a chosen point, such as before, after, or around a method execution
Reveal the answer + AI explanation — free account

16. What is Proxy-based weaving?

Senior
  1. A.an expression that selects which method executions an aspect's advice should apply to
  2. B.the action an aspect takes at a chosen point, such as before, after, or around a method execution
  3. C.the runtime technique wrapping a bean in a generated stand-in, which is why advice is skipped on internal self-invocation
  4. D.a specific point during program execution, in this framework always a method call, where advice can run
Reveal the answer + AI explanation — free account

17. Which term means: "the runtime technique wrapping a bean in a generated stand-in, which is why advice is skipped on internal self-invocation"?

Senior
  1. A.Aspect
  2. B.Advice
  3. C.Proxy-based weaving
  4. D.Cross-cutting concern
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Senior
  1. A.Proxy-based weaving — an expression that selects which method executions an aspect's advice should apply to
  2. B.Proxy-based weaving — a responsibility like logging or security that spans many modules rather than belonging to one
  3. C.Proxy-based weaving — a specific point during program execution, in this framework always a method call, where advice can run
  4. D.Proxy-based weaving — the runtime technique wrapping a bean in a generated stand-in, which is why advice is skipped on internal self-invocation
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice AOP free