Iam learning java now.I've small doubt in RMI. In a client application we
are using Naming.lookup() for accessing remote object reference.But that is
casting to interface and assign to that interface reference.using that interface
ref. we can access methods of remote object.why we assigned to that interface
reference. please clarify my doubt.