Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

When I construct an InternetAddress object, why don I get an exception if the address is illegal?

0
Posted

When I construct an InternetAddress object, why don I get an exception if the address is illegal?

0

The InternetAddress class only checks the syntax of the address. As discussed above, the InternetAddress class is not able to determine whether the address actually exists as a legal address. It is not even possible to verify the host name if the application is running behind a firewall or isn’t currently connected to the Internet.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123