Java Language Networking

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Syntax

  • new Socket("localhost", 1234); //Connects to a server at address "localhost" and port 1234
  • new SocketServer("localhost", 1234); //Creates a socket server that can listen for new sockets at address localhost and port 1234
  • socketServer.accept(); //Accepts a new Socket object which can be used to communicate with the client


Got any Java Language Question?