can u handle an error if u write Thowable in the catch
class lise

try
{
some errorneous code
}catch(Throwable e){ ...}

Answer Posted / aseet padhi

yes.We can handle by using Throwable in catch block because
it's super class of Exception.

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

make a method which any number and any type of argument and print sum of that arguments.....

1583


What is the difference between assignment and initialization?

787


What is the += operator called?

784


What is class variable java?

768


What is the importance of main method in Java?

786


How do you empty a list in java?

750


What do you know about java?

713


Why is it called a string?

736


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?

2040


What is the integer of 16?

742


what is the use of bean managed and container managed with example?

1726


What is lazy initialization in java?

743


What is meant by class loader? How many types are there? When will we use them?

716


How many types of flags are there?

723


What are the features of java?

736