Does narrowing the return type break RMI backward compatibility?

Viewed 349

Assume I have the following RMI function:

Object foo();

The only implementation is

Object foo() { return "some string"; }

Can I narrow the return type to String without breaking backward compatibility if client and server are not released in one step?

2 Answers
Related