Question
Will all the Try blocks in Java ends with Catch Blocks?

Answers

Yes, Try block either needs to be followed by Catch block or by Finally block or sometimes by both. The reason is that any exception that will be thrown from a try block needs to be caught in a catch block, and even if no exception is there then also use of Finally block should be there so as to specify any specific tasks that needs to be performed before code ends.   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 Who is the 1st female governor of Independent India?
  • Q List any two attitudes that can be developed through the teaching of Social science.
  • Q Agnes the girls name means what
  • Q What is the maximum recommended velocity for steam in a plant pipe network?
  • Q Name the president of the Surat session of the INC in 1907.
  • Q Why would you use untrusted verification?
  • Q What is hot rolling and cold rolling?
  • Q Which of the following are so called "short circuit" logical operators? (multiple) 1) & 2) || 3) && 4) |
  • Q Define database system?
  • Q Which stroke property used to create dashed lines?
  • Q Which animals have a diet mainly consisting of bamboo?