# General

Java 8 gave support to the functional programming paradigm in Java.

Several patterns are supported, such as pipelines (as streams), functions or mapping.

As usual with functional programming, try to keep functions pure. Keep the code in each component self-contained, and with no side effects.

## More Information

* [Java 8 Idioms](https://www.ibm.com/developerworks/java/library/j-java8idioms5/index.html)
* [Functional Interfaces in Java 8](http://www.baeldung.com/java-8-functional-interfaces)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://bernardo.gitbook.io/development-docs-java/functional/general.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
