What are the advantages and disadvantages of java sockets.
Answer / Hansraj Dwivedi
Advantages:
1. Simplicity: Java sockets provide a simple API for creating network connections.
2. Platform independence: Sockets in Java can be used to create cross-platform applications that run on various operating systems.
3. Flexibility: Sockets allow for a wide range of networking tasks, including file transfer, remote procedure calls, and messaging.nDisadvantages:
1. Performance: Sockets can be slower than other network protocols such as HTTP for simple tasks due to the overhead of establishing and managing connections.
2. Security: Sockets are less secure than other network protocols as they do not provide built-in security features, requiring additional code for authentication and encryption.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain a time server?
What is meant by time-slicing?
What is an http server?
How we can make simple java program for Server/Client Communication
What is Inet address?
What is InetAddress?
If you do not want your program to halt while it waits for a connection, put the call to accept( ) in a separate thread?
What is socket in java?
Explain look for local ports?
Tell me about networking classes and interfaces.
1 Answers Akamai Technologies,
What is a thread pool?
What is the Difference between socket and servlet?