7. What is the output during execution if the user types in”bdcda” as input? char ch1=’ ‘; int j = 0; for(int i = 0 ; i <5; i++) { try { ch1 = (char) System.in.read(); } catch(Exception e){} if (ch1 == ‘a’) break; else if (ch1 == ‘b’) continue; else if(ch1 == ‘c’) i–; else if (ch1 == ‘d’) j++; j++; }System.out.println( j );
8. What value is returned when method func(9) 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
PayPal Gateway not configured
PayPal Gateway not configured