Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is “try and catch” in java

Answers were Sorted based on User's Feedback



What is “try and catch” in java..

Answer / priya.s

It catches and throws the exception at run time

Is This Answer Correct ?    14 Yes 1 No

What is “try and catch” in java..

Answer / vijay kumar

These are the keywords which is used for Exception handling in java.The statements which assumes to raise an exception should kept in try block, and catch block contains the alternate code which should execute when exception occurs.

Is This Answer Correct ?    11 Yes 1 No

What is “try and catch” in java..

Answer / lakshay gupta

The statements within the try block are executed, and if any
of them throws an exception, execution of the block is
discontinued and the exception is handled by the catch
block. There may be multiple catch blocks, in which case the
first block with an exception variable whose type matches
the type of the thrown exception is executed.
If no catch block matches the type of the thrown exception,
the execution of the outer block (or method) containing the
try ... catch statement is discontinued, and the exception
is passed up and outside the containing block (or method).
The exception is propagated upwards through the call stack
until a matching catch block is found within one of the
currently active methods. If the exception propagates all
the way up to the top-most main method without a matching
catch block being found, a textual description of the
exception is written to the standard output stream.

Is This Answer Correct ?    5 Yes 0 No

What is “try and catch” in java..

Answer / srikanth

if u are devloping code then some where in line no we may
get exception
in order to catch that exception we use try and catch

Is This Answer Correct ?    4 Yes 0 No

What is “try and catch” in java..

Answer / sudhir

when there is a situation for user input and user not give
according to code there try and catch use.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is the independent variable in an experiment?

0 Answers  


how can u create the object with out new operator

2 Answers  


What is the difference between Grid and Gridbaglayout?

0 Answers  


What are command line arguments?

5 Answers  


What is the output of the following Java program? class Main { public static void main(String args[]){ final int i; i = 10; System.out.println(i); } } 10. What is the output of the following Java program? class Main { public static void main(String args[]){ final int i; i = 10; System.out.println(i); } }

1 Answers  


What is “try and catch” in java

5 Answers   Cap Gemini, TCS,


why to use transient variables when static variables can be used for Serialization

4 Answers  


Which collection does not allow duplicates in java?

0 Answers  


What are aggregate functions explain with examples?

0 Answers  


What is the purpose of sizeof operator?

0 Answers  


What happens if an exception is not caught?

6 Answers   Amazon,


When is the finally clause of a try-catch-finally statement executed?

0 Answers  


Categories