Java is object-oriented. It employs classes and inheritance. It provides encapsulation of data.
Java requires that data types be strongly typed.If a function expects one of its arguments to be a number, the function will not accept a character string.
The Common Gateway Interface (CGI) provides a mechanism for a program on the server to interact with the client's browser. You can use any language to write CGI programs, and CGI programs may be interpreted (PERL scripts, for instance) or compiled (C or C++).
With server push, the Web page server maintains a connection between the client and server. Server push restricts the number of simultaneous connections the Web page server can maintain-a popular page using server push will frequently reward potential visits with a "sorry, not now, try later" message. Client pull, on the other hand, involves the client frequently re-establishing its connection to the server, artificially adding to the traffic at the server.
One popular use of CGI is in hit counters-programs that modify the page to show how many times that page has been visited. Another popular use of CGI is in form handling, where a program on the server reads the data from the user input fields and does some work based on that data.
You are absolutely correct but that would involve no additional traffic or long drawn-out connections between the client and the server.
Some web space providers only allow the use of a limited set of applications. Many providers do not support server push CGI.