answersLogoWhite

0

A try block can have multiple catch blocks, each handling a different type of exception. Be careful about the order of laying the exceptions. Using Exception at the top will catch everything that is derived from it, thereby missing the other specfic exception catches. And there can also be only one finally block.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

How many finally block can be used for an exception handler?

Genaerally every try block maintain the one finally block or atleast one catch block or both. It mean try { try{ try{ } or } or } finally { catch(....) { catch(...){ } } } catch(.....) { : } finally{ : } Hear whenever we declar the try block without catch or finally bocks it show the compile time error like ' try without catch or finally' and also it is not possible to declare the any statements in between the try ,catch and finally blocks. ex: try{ } System.out.println("statement"); finally { } The above example show the compile time error 'try without catch or finally'. " Hear the finally block must be execute after excuting the try or catch block. Hence the finally block is used to release the resources like closing the streams and closing the jdbc connections." Hence in exception handling we use one finally block for one try block to release the resources.


How many blocks is 1km in minecraft?

1km is 1000 blocks. 1 block is 1 meter. 1 block is exactly 1x1x1.


How many Chevy small blocks are there?

350 and under are small blocks. There is also a 400 small block but there is a 400 large block. 396 and up are big blocks.


How many blocks is 1056 feet?

1 block


How many blocks is a quarter of a mile?

0.5 miles will be about a block in the city. If you are in the country 0.5 miles might be only half a block.


How many blocks is an enderdragon in minecraft?

An enderman is 3 blocks tall, and 1 block wide.


How many blocks go into a square meter?

What sort of blocks? Childrens' building blocks? If so, how big is each block?


How many blocks is 10K?

In terms of city blocks, 10 kilometers (10K) is roughly equivalent to about 100 city blocks, assuming an average city block length of about 100 meters. However, this can vary depending on the specific city and its block sizes. For example, in some urban areas, blocks may be longer or shorter, which would affect the exact number.


How many blocks in 2400 sf?

2700 8x8x16 block


How many blocks are in 880 yards?

A block is not a standard measure.


Yushiro made a tower with 25 red and black He strted with a red block Everyother block was red How many red blocks did he use?

there are 13 red blocks


How many full miles is 100 blocks?

It matters how long the blocks are. It matters how long each block is.