• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.io.InvalidCastException

 
Pankaj kumar Dwivedi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends,
I am trying to read object from file and want to check equality of data member of reading object with another OBJECT. suppose there is a class Login with serialization with two data members username and password. object L1 is written object in file and object L2 is created in source code. and i want to equate both object. in my programm there is a error java.io.InvalidCastException stream classdesc serialversion id of both objects.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!