Why are there no constructors for the InetAddress class?

Bob Pasker

It is often considered a bad idea to do I/O in a constructor, and all three InetAddress factory methods (getLocalHost, getByName, and getAllByName) need to perform I/O.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact