Java Serialization Advanced Interview Questions
In this post, we will see Serialization advanced interview questions. In this you might see some tricky questions as well 1. What is the difference between the Serializable and Externalizable…
Java freshers interview questions, java interview questions, top 50 interview questions, freshers java interview questions,core java interview questions
In this post, we will see Serialization advanced interview questions. In this you might see some tricky questions as well 1. What is the difference between the Serializable and Externalizable…
In this post, we will see questions asked on String during java interview 1. Explain String pool in java? String Pool is java string literals pool that JVM maintains a…
Example Custom serialization in Java: import java.io.*; class Person implements Serializable { private static final long serialVersionUID = 1L; private String name; private int age; public Person(String name, int age)…
In Java, serialization works with inheritance in the following way: If a class implements Serializable, its subclasses will also be serializable, regardless of whether the subclasses implement Serializable or not.…
In this tutorial, we will learn more and in detail on Java Serialization and Deserialization. Java serialization is very import topic and every developer should know this topic. Serialization: Java…
In this post, we will see more details on SerialVersionUID and also issues with default serial version id. SerialVersionUID: Java uses serialVersionUID field for versionsing. It’s a static and final…
The Serialization Proxy pattern is a technique in Java for providing a more robust and flexible serialization mechanism for a class. It involves creating a separate, serializable class that acts…
The Externalizable interface in Java is a marker interface that allows for custom serialization of an object. Classes that implement Externalizable must provide a public no-arg constructor and implement the…
Serialization in Java is not inherently thread-safe. When serializing an object, it is important to ensure that the object is not being modified by another thread while it is being…
1. What are nested classes in java? Class declared with in another class is defined as nested class.There are two types of nested classes in java.1) Static nested class :…