AssignII DS
AssignII DS
2. Given below is the definition of the class Project and two objects of the same class.
Draw the serialized form of the object using Java Object Serialization procedure.
public class Project implements Serializable {
private String projID;
private String projTitle;
private unsigned int duration; // in weeks
private float budget; // in millions
public Project (String a, String b, unsigned int c, float d) {
projID = a; projTitle = b;
duration = c; budget = d; } }
3. Define a class in Java whose instances represent remote object references and it
should provide access methods needed by higher-level protocols (e.g. request-
reply).
4. Define a new version of the doOperation method that sets a timeout on waiting
for the reply message. After a timeout, it retransmits the request message n
times. If there is still no reply, it informs the caller.