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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / ravikiran

runtime exceptions

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Core Java Interview Questions

Explain the purpose of garbage collection in Java?

0 Answers   BirlaSoft,


What is the importance of static variable?

0 Answers  


What is string builder?

0 Answers  


Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?

0 Answers   HCL,


How does linkedhashmap work in java?

0 Answers  






What is final access modifier in java?

0 Answers  


How do you declare an array that will hold more than 64KB of data?

0 Answers   Aspire, Infogain,


What is scanner in java?

0 Answers  


What is the difference between a scrollbar and a scrollpane?

0 Answers  


Difference between flush() and commit() in hibernate?

2 Answers   Bally Technologies,


State one difference between a template class and class template.

0 Answers   HAL,


What are use cases?

0 Answers  


Categories