Monthly Archives: April 2014

Algorithm and Programing assignment 6

1.Describe the Java Throwable class, its subclasses, and the types of exceptions 2.What is the purpose of declaring exceptions? How do you declare an exception, and where? Can you declare multiple exceptions in a method header? 3.What is a checked … Continue reading

Posted in Uncategorized | Leave a comment

Algorithm and Programing Assignment 5

1. What are the differences between a while loop and a do-whileloop? Convert the following while loop into a do-while loop. 2. Do the following two loops result in the same value in sum? 3.  What does the following statement do? for( ;  ; ){      do something; } … Continue reading

Posted in Uncategorized | Leave a comment