What is the difference between a join point and a pointcut in Spring AOP?

In Spring AOP, a Join Point represents a specific point during program execution where an aspect can be applied, while a Pointcut is an expression that identifies and selects one or more Join Points where advice should run. Simply put, Join Points are the possible execution points, and Pointcuts define which of those points should be intercepted.

Key Points

Example

Consider an application where logging is required whenever any method in the service layer is executed.

@Aspect
@Component
public class LoggingAspect {

    @Pointcut(
        "execution(* com.app.service.*.*(..))")
    public void serviceMethods() {
    }

    @Before("serviceMethods()")
    public void logBefore() {

        System.out.println(
            "Method Execution Started");
    }
}

In the above example

Difference Between Join Point and Pointcut

Real-World Analogy

Interview Tip

A concise interview answer is: A Join Point is a specific point in program execution where an aspect can be applied, such as a method execution. A Pointcut is an expression that selects one or more Join Points. In Spring AOP, advice is executed only on the Join Points matched by the Pointcut expression.

Last updated: 11 November 2026

Previous question: What is the difference between the @Spy and @Mock annotations in Mockito?

Next question: What is Spring Batch, and what are the steps to implement a batch job?

More Spring Framework - Level II interview questions

All Spring Framework - Level II questions