employer cover photo
employer logo
employer logo

RPM Technologies (Canada)

Ist dies Ihr Unternehmen?

Frage im Vorstellungsgespräch bei RPM Technologies (Canada)

Write a Java program to throw and catch an exception.

Antwort im Vorstellungsgespräch

Anonym

14. Apr. 2012

public class A{ public int a=5; try{ go() { a=5/0; } } catch(ArithmeticException a) { system.out.println("exception caught") } public static void main(Strings[] arg) { A a1=new A(); a1.calc(); system.out.pritln("after exception"); } }