Is it possible to send an object using Sockets, if so, how
it can be?
Answer Posted / afzi
Yes it is Poosible to send an Object using Sockets,
for example refer to below given code snippet.
ObjectOutputStream out = new ObjectOutputStream
(socket.getOutputStream());
out.flush();
ObjectInputStream in = new ObjectInputStream
(socket.getInputStream());
type=(String)in.readObject();
out.writeObject("ok");
in.close();
out.close();
socket.close();
Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
Explain a daytime server?
What is a listener in networking?
Explain look for local ports?
What is HttpURL connection ?
What is the use of network interface?
What are the advantages and disadvantages of sockets?
Explain the generic term internet.
Tell me about networking classes and interfaces.
What is the main difference between Client side Java Script and and Server side Java Script how actually they run on both side with Example.
What is a thread pool?
What is a client tester?
What you know about random port?
What is cookies in networking ?
Where is the network interface card located?
Explain a time server?