# java

### My snippets

* [Java pass by value](http://groovyconsole.appspot.com/script/5150188356239360)! A snippet showing that on sending objects to a method, the method receives a copy of a reference, although it points to the original object it does not change the reference itself. Conclusion: java pass by value, not by reference (also available [here](https://ideone.com/HTJ2Nc)).&#x20;
* [Finding an algorithm / equation that matches with observations ](http://groovyconsole.appspot.com/script/5203477827420160)using groovy assert. [This second algorithm ](http://groovyconsole.appspot.com/script/5097740564430848)also compares the estimation from an equation obtained from exponential regression [given by wolfram alpha regression calculator](https://www.wolframalpha.com/widgets/view.jsp?id=a96a9e81ac4bbb54f8002bb61b8d3472).
* [A singleton class and how to destroy and recreate the static object.](https://ideone.com/me1NvQ)

### My favourite libraries

* [Apache Camel](https://cleberjamaral.gitbook.io/mind/knowledge/programming/java/apache-camel)


---

# 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://cleberjamaral.gitbook.io/mind/knowledge/programming/java.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.
