In PL/SQL (or many other languages), I can have IN OUT or OUT parameters, which are returned from a procedure. How can I achieve a similar thing in Java?
I know this
There's no direct way. Other technique include:
If you think about it, the array trick is not dissimilar to passing a T* in C/C++