0

I have a class say Dog which is implementing an interface Animal which has 5 constant variable . Now I am serializing this dog object and sending it to the other server say server B.

In Server B , I have same dog class but the animal class has an extra constant field so the total constant is 6

As per my understanding I should not be able to cast the incoming dog object to the dog ref in server B . But I am testing it and it is working fine .

Could anyone explain me this

Now

Programmer
  • 713
  • 1
  • 8
  • 23

0 Answers0