What is a catch clause?
What will be an ideal response?
The catch clause is the part of the try statement that catches an exception that may be thrown in the try
block.
You might also like to view...
Themes are displayed in the Document Formatting group on the ________ tab
A) INSERT B) REVIEW C) DESIGN D) PAGE LAYOUT
What is output by the following Java code segment?
int temp = 180; while (temp != 80) { if (temp > 90) { System.out.print("This porridge is too hot! "); // cool down temp = temp – (temp > 150 ? 100 : 20); } else { if (temp < 70) { System.out.print( "This porridge is too cold! "); // warm up temp = temp + (temp < 50 ? 30 : 20); } } } if (temp == 80) System.out.println("This porridge is just right!"); a. This porridge is too cold! This porridge is just right! b. This porridge is too hot! This porridge is just right! c. This porridge is just right! d. None of the above.