As we know both language are pass-by-value when passing parameters to methods. But C# supports `ref` and `out` keywords to pass-by-reference of primitive types. I am looking for the same keywords and technique in Java?

My guess is using `Integer` wrapper class instead of `int` in Java to pass in.

Any suggestions and examples?