SCJP Certification

Sun Certified Java Programmer Certification exam essentials

November 24th, 2009

What will be the output of the following program code?

Java Questions, by Daisy Williams.

public class Exc
{
public static void main(String args[])
{
int x1=0;
try {
int x3= 100/x1;
} catch(ArithmeticException e) {
System.out.println(“Illegal operation”);
} catch(RuntimeException e) {
System.out.println(“runtime error”);
return;
} catch(Exception e) {
System.out.println(“Exception found”);
} finally {
System.out.println(“Complete”);
}
System.out.println(“Successfully”);
}
}

Share

Back Top

Responses to “What will be the output of the following program code?”

Comments (0) Trackbacks (0) Leave a comment Trackback url
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Your email address will not be published. Required fields are marked *

*