Solved

can finally block executed even when there is a return statement in try block

Posted on 2016-08-05
4
80 Views
Last Modified: 2016-08-06
hi,
can finally block executed even when there is a return statement inside try? please advise
0
Comment
Question by:gudii9
4 Comments
 
LVL 8

Accepted Solution

by:
James Bilous earned 250 total points
ID: 41744448
A finally statement will always be called, even if the corresponding try block contains a return statement.
0
 
LVL 14

Assisted Solution

by:CPColin
CPColin earned 250 total points
ID: 41744456
Try it! Write a couple lines of code and see what it does. Experiment!

(You've asked a very similar question before, by the way, and my suggestion was similar then, too.)
0
 
LVL 27

Expert Comment

by:d-glitch
ID: 41745057
>>  You've asked a very similar question before

Suggesting that gudii9 has not learned much about Java, debugging, independent thinking, or social behavior in the past three years.

I am actually concerned that he is posting these bizarre questions out of malice rather than ignorance.
1
 
LVL 15

Expert Comment

by:gurpsbassi
ID: 41745397
Do you score points for posting questions?
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to get all the API from website? 11 82
how to add new optional parameter to JSP 1 40
Java exception bubble up 2 17
how to install java on RHEL image on EC2 4 26
This is an explanation of a simple data model to help parse a JSON feed
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now