I would like to do data transfer between two computers using datagram socket.Iam using the following line as follows:
host=InetAddress.getByAddress("mypc",new byte[]{192,168,1,110});
but when I use the above operator, I get this error: "Possible loss of accuracy"
So, I passed int bytes as follows:
InetAddress.getByAddress("mypc",new byte[]{(byte)192,(byte)168,(byte)1,(byte)110});
Will the above statement be executed?
source
share