Someone highlight on the sockets available in java and actually why are sockets used?
Printable View
Someone highlight on the sockets available in java and actually why are sockets used?
Sockets are used for data communication and they use protocol for doing this. This is the general view and usage of sockets and for achieving this each programming language uses some features, functions or techniques.
There are two kinds of sockets in Java one for handling server and another for client. They are namely:
ServerSocket class is used by the server to wait for the client and connects to the server by Using Socket Class.
hi,
Sockets are divided into 2 types, (Hardware,Software ports).
we can't see software port. Every application is using Specific port.
we cant'use Reserved port, that's already assigned.