Java Programming Language MCQ Java Exception MCQ
⚠ Report ✓ Question Verified Copy Link
public class Test{ public static void main(String args[]){ int i; try{ i = calculate(); System.out.println(i); }catch(Exception e){ System.out.println("Error occured"); } } static int calculate(){ return (7/2); } }
Learn More MCQ Questions from Java Programming Language MCQ Java Exception MCQ