Professional Documents
Culture Documents
Java 8 Alok
Java 8 Alok
Java 8 Alok
Experiment Number: 8
Student Name: ALOK KUMAR UID: 21BCS6438
1) Start.
9)End 4.
Code
main(String args[])
throws Exception
Socket s = ss.accept();
System.out.println("Connection established");
InputStreamReader(s.getInputStream()));
System.out.println(str); str1 =
kb.readLine(); ps.println(str1);
ps.close(); br.close();
kb.close(); ss.close();
s.close();
System.exit(0);
}}
java.net.*;
{
APEX Institute of Technology
System.out.println(str1);
dos.close(); br.close();
kb.close();
s.close();
}}
5. OUTPUT
6. Learning Outcomes :-
APEX Institute of Technology