What are the advantages and disadvantages of java sockets.



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

Post New Answer

More Java Networking Interview Questions

Explain a time server?

1 Answers  


What is meant by time-slicing?

9 Answers   Accenture, Wipro,


What is an http server?

1 Answers  


How we can make simple java program for Server/Client Communication

1 Answers   PUCIT,


What is Inet address?

17 Answers  


What is InetAddress?

4 Answers   CTS,


If you do not want your program to halt while it waits for a connection, put the call to accept( ) in a separate thread?

1 Answers  


What is socket in java?

1 Answers  


Explain look for local ports?

1 Answers  


Tell me about networking classes and interfaces.

1 Answers   Akamai Technologies,


What is a thread pool?

1 Answers  


What is the Difference between socket and servlet?

1 Answers  


Categories