As you know, a method can return a value. That value can be an object on which you can call other methods. In your example, getServletConfig() returns a ServletConfig object. The ServletConfig object has a method getInitParameter(). Your line above is equivalent to: