Professional Documents
Culture Documents
A)
setReceiveBufferSize() B) setBufferSize() C) setSocketBufferSize() D) setBuffer()
22. In Java socket programming, which class is used to represent an IP address? A) InetAddress
B) IPAddress C) SocketAddress D) NetworkAddress
23. Which method is used to retrieve the local address to which the socket is bound in Java? A)
getLocalAddress() B) getRemoteAddress() C) getSocketAddress() D) getInetAddress()
25. Which method is used to set the performance preferences for a socket in Java? A)
setPerformancePreferences() B) setSocketOptions() C) setConnectionPreferences() D)
setPerformanceOptions()