为什么说Java中InetAddress 无构造方法4
发布网友
发布时间:2023-09-20 08:34
我来回答
共1个回答
热心网友
时间:2024-12-12 22:48
其实是有构造方法的。。。
看源代码
/**
* Constructor for the Socket.accept() method.
* This creates an empty InetAddress, which is filled in by
* the accept() method. This InetAddress, however, is not
* put in the address cache, since it is not created by name.
*/
InetAddress() {
}