Question: Given the following code snippet, what will be the output when helloWorld() is run?
public function helloWorld() : void {
trace("Line 1" );
var num : Number=25;
try{
num=num/0;
trace ("Value of num in try: "+num.toString());
}catch (err : IOError) {
trace("Value of num in catch: "+num.toString());
}finally{
num=0;
}
trace("Value of num: "+num.toString());
}
ALine1 Value of num in try: 25 Value of num in catch: 25 Value of num: 0
BLine1 Value of num in catch: 25 Value of num: 0
CLine1 Value of num in try: 25 Value of num in catch: 25
DLine 1 Value of num in try: Infinity Value of num: 0
Note: Not available