单项选择题

当使用HttpURLConnection进行请求时,以下哪个方法是设置链接超时时间的方法?()

A.setReadTimeout()
B.setConnectTimeout()
C.setUrlConnectTimeout()
D.以上说法都不正确

相关考题