Assignment title: Information


1 The Assignment-1 Specification and Marking Criteria Java Interface, Java Object Serialization, Java multi-threading model and client/server model are the fundamental Java components to build distributed applications. In this assignment, you are to construct a number of Java classes to show your understanding and skills about these components or models. To prepare these Java classes, you will need to read the textbook or the unit online materials or you may need to research widely (e.g. from the Internet) on these Java APIs and models. The assignment specification is as follows. 1. Construct one or a number of Java classes as a complete example to demonstrate how to use a Java interface. 2. Construct one or a number of Java classes as a complete example to demonstrate how to use Java object serialization. 3. Construct one or a number of Java classes as a complete example to demonstrate how to use Java multi-threading. 4. Construct a number of Java classes as a complete example to demonstrate how to use a client/server model. Note: TCP is required for the client/server communication. That is, there are 4 examples to be provided and each may consist of one or more Java classes. Each example must be able to compile and run by JDK (Java Development Kit) and JRE (Java Runtime Environment) or NetBeans IDE. In addition, for each example, you will need to provide a brief instruction about the function of this example, how to compile and run it. Note 1: for the above task 1 to 4, any examples can be accepted and credited as long as they can demonstrate your understanding and programming skills. Note 2: to show your understanding you should compose your own examples. You are not to use the examples from this unit textbook or the unit online materials. If you copy examples from this unit or from the Internet, you will be given 0 marks and my incur plagiarism penalty. Good understanding and correct use of these Java APIs or models are also important for the assignment-2, where you need to use these APIs and models to implement a distributed application. Submission The assignment must be submitted as a zip file which includes the Java classes and a single Microsoft Word document as the user instruction. You must submit your assignment via the unit web site. Any hardcopy or email submission will not be accepted. After the marked assignments are returned, any late submissions will not be accepted. Marking Criteria Criteria Available Marks Java Interface 4 1. Whether the example is compilable and runnable 1 2. Whether the Java interface is correctly used 2 3. Whether the instruction is clear 1 Java Object Serialization 42 1. Whether the example is compilable and runnable 1 2. Whether the Java serialization is correctly used 2 3. Whether the instruction is clear 1 Java multi-threading model 4 1. Whether the example is compilable and runnable 1 2. Whether the Java multi-threading is correctly used 2 3. Whether the instruction is clear 1 Client/server model 8 1. Whether the example is compilable and runnable 1 2. Whether the client can communicate with the server 3 3. Whether TCP is correctly between client and server 2 4. Whether the instruction is clear 2 Sub Total for Assignment-1 20.0 Late Penalty -1 (5%) each calendar day(either full or part) Plagiarism Penalty Total for Assignment-1