Write java program to read and write string using file.
Explain the concept of De-serialization.
Briefly explain the Thread Life cycle.
What class allows you to read objects directly from a stream? Briefly Explain.
Write java program to read and write character using file.
When threads are not lightweight process in java? What happens if an object is directly called by run() instead of Start().
Write a program to copy from one file to another.
Explain serialization and Deserialization using Serializable interface.
Create an employee object having properties name, date of birth, department, designation and salary. Let the employee class have appropriate getter/setters methods for accessing these properties. Initialize these properties through the setter methods. Store this object into a file "OutObject.txt". Read the same object from the same file and display its properties through getter methods.
1. Create a class of SalesPersons as a thread that will display five salespersons names.
2. Create a class as Days as other Thread that has an array of seven days.
3. Call the instance of SalesPersons in Days and start both the
threads
4. suspend SalesPersons on Sunday and resume on Wednesday
Note: use suspend, resume methods from the thread