Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
In Scala, you pass a function as a parameter whenever you want to tell another function what to do. Java does not (currently) have functions, and a Java programmer has to work harder to achieve the same effect. Usually, one puts actions into a class implementing an interface, then gives an instance of that class to another method.
Many times, these interfaces have a single abstract method. They are called SAM types in Java.