Question: What happens if you try to save an object that is not serializable in an object output stream? Try it out and report your results.

What happens if you try to save an object that is not serializable in an object output stream? Try it out and report your results.

Step by Step Solution

3.38 Rating (148 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

An ObjectOutputStream in Java is used to write primitive data types like int float etc and Java objects into an OutputStream The objects can be read r... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java Programming Questions!