java question be detailed and have clear explanation will give thumbs up rating if s 5152278

java question, be detailed and have clear explanation. will give thumbs up rating if solved in 20 minutes

Answer the following: a. What is the purpose of serialization/deserialization in Java? b. In the following program, explain h

Answer the following: a. What is the purpose of serialization/deserialization in Java? b. In the following program, explain how you would go about making this class apt for serialization. c. In this case, we do not want the field 'crew' to be serialized because it is expected to be set dynamically; so how would you do that? class Ship { private String name; private int year; private String type; private int crew; public Ship(String name, int year, String type, int crew) { this.name = name; this.year = year; this.type = type; this.crew = crew; public String getName() { return this.name; } public int get Year() { return this.year; } public String getType() { return this.type; } public int getCrew() { return this.crew; } public void setName(String newName) { this.name = newName; } public void set Year(int newYear) { this.year = new Year; } public void setType(String newType) { this.type = newType; } public void setCrew(int newCrew) { this.crew = newCrew; }

"Get 15% discount on your first 3 orders with us"
Use the following coupon
FIRST15

Order Now