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 public static void main?

561


What are different types of arrays?

521


What is the difference between jvm and jre? What is an interface?

540


What is the difference between dom and sax parser in java?

521


What is the parse method in java?

553






What is outofmemoryerror in java?

557


whatis Home interface and Remoteinterface? with example?

1536


How is hashset defined in java?

513


Why java strings are immutable in nature?

579


How to set the permissions to a file in java?

529


What is the maximum size of list in java?

534


Is call by reference possible in java?

527


Why main() method is public, static and void in java ?

587


What is method reference?

509


What is a method type?

524