Question
Is there any way to skip Finally block of exception even if some exception occurs in the exception block?

Answers

Ans:  If an exception is raised in Try block, control passes to catch block if it exists otherwise to finally block. Finally block is always executed when an exception occurs and the only way to avoid execution of any statements in Finally block is by aborting the code forcibly by writing following line of code at the end of try block:
Java
System.exit(0); 1
System.exit(0);

    Your Comment




More Software,Java Questions..
What is the inputsplit in map reduce software?

Can variables be used in Java without initialization?

What is the difference between java bean and enterprise java bean?

What is software configuration management?

How does the java database connectivity (jdbc) work?

What are the advantages of threads in java?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

What is object cloning in Java?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?



Search
Can you Answer!!
  • Q Describe your work ethics.
  • Q Explain how to present different styles/drawables for a button depending on the state of the button (pressed, selected, etc.) using XML (no Java)
  • Q 'One Family one Bank' is the tagline of which Bank?
  • Q How can you enable or disable the form assistant? and how to be sure that the form assistant is expanded or not?
  • Q How to deploy SilverLight Web part in Sharepoint 2010?
  • Q Give the safety precaution when working in a high place.
  • Q Which was the only national movement without a leader?
  • Q How many times has a National Emergency been declared so far by the President?
  • Q Mention what is the maximum number of profiles in a role and maximum number of object in a role?
  • Q What do you mean by data mapping?
  • Q Why is fog common around Newfoundland coast?