Java Interview Questions - Page 12
Question: What is Serialization and deserialization?
Answer: Serialization is the process of writing the state of an object to a byte stream. Deserialization is the process of restoring these objects.
Finding a Factorial using while loop
In this example we are going to find out the factorial of 12 by using the while loop. In while loop the loop will run until the condition we have given gets true. We are using the scriptlet to calculate the factorial of 12.