Core java Serialization interview questions

1. What is serialization in java?

2. What is the main purpose of serialization in java?

3. What are alternatives to java serialization?

4. Explain about serializable interface in java?

5. How to make object serializable in java?

6. What is serial version UID and its importance in java ?

7. What happens if we don’t define serial version UID ?

8. Can we serialize static variables in java?

9. When we serialize an object does the serialization mechanism saves its references too?

10. If we don’t want some of the fields not to serialize How to do that?

Leave a Reply