Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Flex finally in flex
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


BikrantSingh
finally in flex
1 Answer(s)      3 years and 11 months ago
Posted in : Flex


Hi.....

Where is finally used and what does it do?

please tell me about that with example...

Thanks


Advertisement
View Answers

October 26, 2010 at 4:23 PM


Ans:

A finally block can appear after the try and catch blocks, and it can contain code that is run regardless of what happens within the try and/or catch blocks.

For example:

try {
  trace("try");
}
catch (errObject:Error) {
  trace("catch");
}
finally {
  trace("finally");
}
//output: try, finally

Since no error is thrown, the catch block doesn't run. However, the finally block does run.

Similarly, the finally block will run even when an error is thrown:

try {
  throw new Error();
  trace("try");
}
catch (errObject:Error) {
  trace("catch");
}
finally {
  trace("finally");
}
//output: catch, finally


Related Tutorials/Questions & Answers:
finally in flex
finally in flex  Hi..... Where is finally used and what does it do? please tell me about that with example... Thanks   Ans: A finally..."); } finally { trace("finally"); } //output: try, finally Since no error is thrown
finally block
finally block  hii, If I am writing return at the end of the try block and some code in finally block, then the finally block will execute??   hello, certainly finally block will execute
Advertisements
Finally() in Java
Finally() in Java  After an exception i excute some statement in Finally block.After Fianally block we can execute statements??? if possible... exception1; } Catch(exception1 e) { .... } Finally { try{ }catch(Exeception e
closing connections in finally block
closing connections in finally block  Hi, What will happen if I close connection before closing the resultset in the finally clock? e.g. finally... { ... conn.close(); rs.Close(); } If i do as above ... what will happen
try and finally block
try and finally block  hello, If I write System.exit (0); at the end of the try block, will the finally block still execute?   hii... it will always terminate our program. so finally will not execute
The finally Keyword
The finally Keyword         The finally is a Java keyword that is used to define a block that is always executed in a try−catch−finally statement. In java
Finally in java
Finally in java In this section we will discuss about finally block in java. Finally block always execute when try block exits. Finally is a block of code that execute after try/catch block. finally will execute whether exception
Java finally
Java finally         In java, there are three clauses named try, catch and finally used... a good practice to use finally clause after the try and catch block to handle
java: try finally blocks execution
java: try finally blocks execution  java: try finally blocks execution
Does finally always execute in Java?
Does finally always execute in Java?  Does finally always execute in Java
Java try, catch, and finally
Java try, catch, and finally         The try, catch, and finally keywords are Java keywords..., catch and finally block is given below: try { / 
Example to show Finally exception in java
Example to show Finally exception in java       Finally block are the block, that executed when... occured.The Run time always execute the expression in finally block irrespective
Flex Looping
Flex Looping  I need example for flex looping mechanisam example
Flex - Framework
Flex  database conectivity in flex
iPhone 3.0 is finally here!
iPhone 3.0 is finally here!   ... of the hugely popular iPhone has finally come out with the third OS instalment... that were sorely missed in the previous versions, have finally made appearance
Flex Combobox
Flex Combobox  flex combobox with database as dataprovider   You can visit the following link for detailed tutorial on the topic. May this will be helpful to you. http://www.roseindia.net/flex/flex-combo-box.shtml
Flex event
Flex event  Hi.... Please tell me about How to create your own event in flex? Thanks
Flex and Java
Flex and Java  hi..... Please give similiarities between Java and Flex. Thanks
Flex basic
Flex basic  Hi...... please just tell me about Can we run Flex applications in MAC? Thanks
Flex and Java
Flex and Java  Hi.... What are the config files that are used to connect Java and Flex applications? Please provide the solution of this prob so i connect java and flex.... Thanks
Flex and Java
Flex and Java  Hi...... Give the name of Collection which can be mapped to java and Flex and vice-versa. please give the name of all collections which is used in flex and java.. Thanks
Flex basic
Flex basic  Hi.... Can flex application communicate with each other on the client? please give me the answer ASAP..... Thanks   Ans: See the LocalConnection API In the flex documentation. Thanks
Flex Updates
Flex Updates  Sir, first Thanks For Good Resource for Every One! i am New to Flex... but,in Current Updates Tell Us Flex Becomes To down!(Sorry To say).. May I know Future groom & Advantage of Flex Over Other Web
Flex as a Service
Flex as a Service  Hi....... just tell me about How do I run Flex as a service? please give me an example if possible Thanks  Ans: Flex is not a server. It is the pert of your web application. you can use
Flex basic
Flex basic  Hi.... I want to know Do we need any plugins to run Flex applications? please give the ans ASAP....... Thanks
Flex basic
Flex basic  Hi.... can you tell me about Is Flex OS specific or operating system independent? please give the description about it....... Thanks
Flex application
Flex application  Hi..... What kind of applications you can create from flex? please give the name of these applications....... Thanks
Flex basic
Flex basic  Hi.......... I want to know about What is localToGlobal and globalToLocal in flex? please give me ans ASAP..... Thanks
Flex difference
Flex difference  Hi.... please tell me about What is the difference between Flex 2.0 and Flex 3.0? Thanks  Ans: There are some advantages of Flex3.0 over Flex 2.0 they are following: 1. Faster compilation time
Flex with JSP
Flex with JSP  i want to draw chart in jsp page using flex. how can i do that? any solution??   Flex charts You can visit the following links: http://www.roseindia.net/tutorial/flex/flex4/components/charteffect.html
Flex basic
Flex basic  Hi...... Please tell me about What are non-visual components in flex? What class do they extend? please give the name of these components....... Thanks
 

 

 

DMCA.com