I don't do much work in Java (I'm a .NET dev, mostly), but I don't think there are any real features that one has that are totally unavailable in the other. As Alex said, Matlab is good for rapid prototyping, whereas Java really isn't; on the other hand, it'll likely be easier to interoperate...