Question about callback and inline method

The answer to HFSJ chapter 13 mock question 1 are: destroy() is always a container callback method and doFilter is both a callback and a inline method. What's the difference between a callback and an inline method?