This question lacks a lot of knowledge about general programming at least from how it's phrased, but what the hell I'll humour the author here.
What you're really asking for is shared memory as a form of IPC (inter process communication). And Java doesn't support shared memory because it's very OS specific. And, if you want to share objects between two processes it's just as easy AND more flexible to use sockets. You seem very concerned about performance without really knowing anything about your program's performance, but sharing data over sockets is just as fast as shared memory for practical purposes. I wouldn't get overly upset that shared memory isn't an option. Not many programs use it anymore now that this thing called the internet showed up.
If you're really twerked over shared memory you can look at Memory Mapped files using NIO. Now that NIO2 is out with Java 7 there might be some other options that have better performance.