What are MalformedURLException and UnknownHost Exceptions
and whey they will be thrown?

Answer Posted / serhiy

malformed and unknowhost exceptions occures in case you
indicated wrong ULR or the host is down(can also occur if
DNS is down)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is casting in java programming?

585


What is the multi-catch block in java?

534


What does it mean that strings are immutable?

576


What is anagram number?

458


Which programming language is best in future?

526






What is operator overloading. Is it is supported in java?

523


What is the maximum length of a url?

511


Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?

596


Explain the use of javap tool.

632


What are the benefits of java?

573


What is double word?

533


List some important features of java 10 release?

515


What must a class do to implement an interface in java programming?

538


Explain about interrupt() method of thread class ?

666


Is java a compiler?

567