COMP1549 Advanced Programming Assignment Sample

Module Code And Title : COMP1549 Advanced Programming Assignment Sample


This coursework is based on advanced programming such as Java Programming. The goal of this course work is to implement a graphical user interface aur command line interface based network distributed system for a client server communication. This client server communication project will be implemented using Java programming language. The “client-server” coding paradigm is a decentralized computer structure which divides data clients from data suppliers (sources).

A client is indeed a programme which requires anything from a domain controller, including a new website and perhaps a Destination ip. Customers can obtain this knowledge from a source at whatever moment. Customers were consumers of knowledge. A webserver is a programme that makes data or services available to customers. It must continuously be operational as well as ready to receive customer queries.

The server seems to be a procedure which is waiting to be connected by a customer because it may perform certain actions on its behalf. Every client would be a programme which communicates with the domain controller. A networking implementation primarily designed to transfer certain services, such as the Graphical User Interface (GUI), which under various situations, perform certain computation, from the customer’s perspective.

Design and Implementation

All the server as well as the client within that manner are Java applications. The client programme must be installed on the customer’s computer. The host could be simultaneous, which means this could service more than a single customer at the same moment. That web server as well as databases are both located just on the computer system (Romanov et al. 2020). The main drawback of this technique, as previously noted, would be usually the application server must be fully installed upon this network device as well as the customer computer must possess the Java interpreters to execute properly. Whatever updates to the service server must be disseminated to the consumers.

The provider throughout such technique is a Java programme, while the consumer is a web page such as Netscape Explorer. The customer inputs the provider’s URL/IP location but also connects to the HTTP daemon (HTTPD) web application on the database domain controller, which downloads the Webpage onto the customer’s workstation (Sallow, 2020). This application serves as a GUI component which communicates to the contemporaneous Java servers through Java’s tcp plugin. The benefit though is that the customer’s PC simply requires an internet browser to communicate towards the host. Furthermore, because the underlying application is located here on a serving computer but also is immediately available even by administration, additional updates to the clients may be done quickly.

In “UDP”, unlike “TCP”, the clients do not establish a link using the “server” but rather delivers a “datagram”. Likewise, the server is not required to approve a connection as well as just waiting for data packets to come. In “UDP”, one may invoke a method named “connect()”, but this does not provide any results as this does with TCP. But there’s no such thing as a three-way handshake. This just examines for imminent faults and records the peer’s “IP address along with port number”. Because connect() stores the peers’ addresses, there is no requirement to give the server address as well as server location length parameters in “sendto ()”.

COMP1549 Advanced Programming Assignment Sample1Figure 1: Architecture of Client-Server Communication (Source:


Analysis and Discussion


Java represents another of several “high-level” coding languages which is utilized for constructing applications of desktops as well as other digital systems via “abstraction (lowering and eliminating features)”. “High-level scripting languages”, as opposed with “low-level coding languages”, make an aggregate of ordinary languages (each language utilized by people) including standard computerized words for providing a more approachable as well as quick form of coding (ANTAL, 2020). Java is both a language of programming as well as a framework. Java refers to a” high-level programming language” that is efficient, “object-oriented”, as well as secure.

Java was created in “1995 by Sun Microsystems” (that is currently a division of Oracle). “James Gosling” is often regarded as the “Father of Java”. It was called “Oak” before Java. Because Oak was actually a recognized corporation, James Gosling with his colleagues renamed it Java.

Netbeans IDE

The netbeans is a java framework. Where we used this framework to get the output.

Main Program

Regarding TCP/IP communication transmission, the object package includes the categories Sockets but also ServerSocket (Fowdur et al. 2018). Therefore, users will need a relatively simple customer as well as server demonstration to explain the utilization of TCP connection using Java.

This customer expects the service is waiting for tcp connections through TCP on serverPort. Whereas if the Websocket function Object() { [native code] } does not establish a connection, then raises the IOException.

Whenever the customer’s query gets approved, it produces an incoming packet to retrieve information from it’s own connection but also an outputting flow for transmitting information to the provider’s endpoint of the communication connection. Process of exchanging communications over connections seems to the developer to be the same as uploading folders through directories.

The delay subsequently passes, resulting in a This Socket Timeout Exception is thrown, yet the Connection would still be active.

Following constructing a Server Socket, this service invokes its accept() function to wait for employees to attach inbound queries.

Waits when a customer requires a connection before returning a Web socket that attaches that consumer to the domain controller (Sallow et al. 2020). The server subsequently reads the Socket’s incoming as well as outgoing sources but also utilizes these to interact with this same customer.

Whenever the conversation is finished, the customer, web service, or perhaps both disconnect the connection, as well as the computer system awaits for some other customer to seek a correlation.

COMP1549 Advanced Programming Assignment Sample 2Figure 2: Client Program (Source: Netbeans IDE)
COMP1549 Advanced Programming Assignment Sample 3Figure 3: Client Program (Source: Netbeans IDE)
COMP1549 Advanced Programming Assignment Sample 4Figure 4: Server Program (Source: Netbeans IDE)
COMP1549 Advanced Programming Assignment Sample 5Figure 5: Server Program (Source: Netbeans IDE)
COMP1549 Advanced Programming Assignment Sample 6Figure 6: Server Program (Source: Netbeans IDE)
COMP1549 Advanced Programming Assignment Sample 7Figure 7: Server Program (Source: Netbeans IDE)


COMP1549 Advanced Programming Assignment Sample 8(1)
COMP1549 Advanced Programming Assignment Sample 8(2)Figure 8: Client-Server communication Output (Source: Netbeans IDE)


Employing MapReduce framework to construct a client / server architecture. RMI correspondence is pretty recent, so it is quickly gaining popularity as a replacement to connections. Research might be conducted to investigate such a notion and its implications against connectors.

Servlet privacy concerns: Safety becomes a major concern while accessing the internet. A person might access a website and communicate using a beneficial application while being fully oblivious about whatever such application performs in other processes. It would be fascinating to investigate whether browsers limit java applications to only receiving as well as transmitting towards the originator server.

This article begins by including an outline of connectivity principles that are regularly utilized. It then delves into connection interactions in depth, as well as three different Java-based customer implementations. The very first instance seems to be a traditional client-server system where both client and the server were indeed programs.

Reference List


ANTAL, T.A., 2019. A Java client-server model to solve the forward and the inverse robot kinematics. Acta Technica Napocensis-Series: Applied Mathematics, Mechanics, and Engineering62(1).

ANTAL, T.A., 2020. Using networking services for remote access to a Java robot simulator. Acta Technica Napocensis-Series: Applied Mathematics, Mechanics, and Engineering63(1).

Fowdur, T.P., Aumeeruddy, S.M. and Beeharry, Y., 2018. Implementation of SSL/TLS-based security mechanisms in e-commerce and e-mail applications using Java. Journal of Electrical Engineering, Electronics, Control and Computer Science4(1), pp.13-26.

Romanov, E.L., Troshina, G.V. and Menzhulin, S.A., 2020, September. Client-server application framework based on an object-oriented network model. In IOP Conference Series: Materials Science and Engineering (Vol. 919, No. 5, p. 052014). IOP Publishing.

Sallow, A.B., 2020. Design and implementation distributed system using java-RMI middleware. Academic Journal of Nawroz University9(1), pp.113-120.

Sallow, A.B., Dino, H.I., Ageed, Z.S., Mahmood, M.R. and Abdulrazaq, M.B., 2020. Client/Server remote control administration system: Design and implementation. Int. J. Multidiscip. Res. Publ3(2), p.7.


Know more about UniqueSubmission’s other writing services:

Assignment Writing Help

Essay Writing Help

Dissertation Writing Help

Case Studies Writing Help

MYOB Perdisco Assignment Help

Presentation Assignment Help

Proofreading & Editing Help

Leave a Comment