In what ways you can handle exception ?

Answer Posted / kabita

we can handle exception by using
try
catch
finally
throw
throws.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why does java doesnt suuport unsigned values?

1788


What is diamond operator in java?

491


What are the new features in java 8? Explain

553


If an object is garbage collected, can it become reachable again?

537


What is the main use of java?

567






What is the difference between serial and throughput garbage collector?

573


Explain the difference between arraylist and linkedlist in java?

480


What is a nested class?

584


What is module in project?

508


Can we define private and protected modifiers for the members in interfaces?

529


How do you remove duplicates in java?

515


2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?

1824


Why can't you declare a class as protected?

590


What is the purpose of using break in each case of switch statement?

559


Is an integer an object?

511