Skip to Main Content
Java 8 in Action
book

Java 8 in Action

by Mario Fusco, Alan Mycroft, Raoul-Gabriel Urma
August 2014
Intermediate to advanced content levelIntermediate to advanced
424 pages
13h 50m
English
Manning Publications
Content preview from Java 8 in Action

Chapter 2. Passing code with behavior parameterization

This chapter covers

  • Coping with changing requirements
  • Behavior parameterization
  • Anonymous classes
  • Preview of lambda expressions
  • Real-world examples: Comparator, Runnable, and GUI

A well-known problem in software engineering is that no matter what you do, user requirements will change. For example, imagine an application to help a farmer understand his inventory. The farmer might want a functionality to find all green apples in his inventory. But the next day he might tell you, “Actually I also want to find all apples heavier than 150 g.” Two days later, the farmer comes back and adds, “It would be really nice if I could find all apples that are green and heavier than 150 g.” How ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java 8 Lambdas and Streams

Java 8 Lambdas and Streams

Madhusudhan Konda
Modern Java in Action

Modern Java in Action

Raoul-Gabriel Urma, Mario Fusco, Alan Mycroft
Java 8 Lambdas

Java 8 Lambdas

Richard Warburton

Publisher Resources

ISBN: 9781617291999Supplemental ContentPublisher SupportOtherPublisher WebsiteErrata PageSupplemental ContentPurchase Link