Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

why wouldn't all Java classes be serializable  RSS feed

 
prashant gour
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why wouldn't all Java classes be serializable?
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All classes in JDK that are required to be serializable are serializable. Classes that do not make sense to serialize, eg: I/O classes like streams, are not. Do you have some specific classes that should have been Serialiable and are not OR this was just a general thought!
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!