Socket and server socket. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Socket and server socket.

What is the use of Socket and ServerSocket in Java Networking? Select the appropriate option(s). a. The class Socket is used to run two programs in two different machines and then communicate each other. b. The class Socket is used to run two programs in the same machines and then communicate each other. C. The class ServerSocket is used to run two programs in two different machines and then communicate each other d. The class Server Socket is used to run a program in a machine and then listen to other programs defined with Socket class.

22nd Oct 2019, 6:04 AM
Vikas Tiwari
Vikas Tiwari - avatar
3 Answers
+ 2
it is client - server connection, so it is usually used to connect two computers Socket (client) <----> ServerSocket (server)
23rd Oct 2019, 2:22 PM
zemiak
0
which point of "community guidelines" is not observed here ?
22nd Oct 2019, 9:31 AM
zemiak
- 1
you could have just Google this, please follow the community guidelines https://www.sololearn.com/discuss/1316935/?ref=app
22nd Oct 2019, 7:04 AM
✳AsterisK✳
✳AsterisK✳ - avatar