5. What will happen when the following code is executed?
class A implements Cloneable { public int i, j, k; String str =(“Hello There”); public Object clone() { try { returnsuper.clone(); } catch (CloneNotSupportedException e) {} } } classB extends A { public B() { i = 5; j = 3; k= -4; } }
6. What value is returned when method func(4) is invoked? publicdouble SquareRoot( double value ) throws ArithmeticException { if(value >= 0) return Math.sqrt( value ); else throw newArithmeticException(); } public double func(int x) { double y =(double) x; try { y = SquareRoot( y ); } catch(ArithmeticExceptione)
PayPal Gateway not configured
PayPal Gateway not configured