Question: 2C plz solve snippets. i) class P3 ii) class P4 static String str-s public static voidmnSring argsl) public static void main(String arg new P30.methodl0: System.out.printIn(str);

2C plz solve
snippets. i) class P3 ii) class P4 static String str-"s" public static voidmnSring argsl) public static void main(String arg new P30.methodl0: System.out.printIn(str); System.out.println"A" "B"'A void method10 try f method20; catch(Exception e) f str"e" finally ( str+"c") void method20 throws Exception try i method30: str e":) catch(Exception e) f throw e; finally { str+="j"; } method3(); / void method30 throws Exception ( throw new ExceptionO; ) 3A. Write a java program to vfite the students detail into two files "tastl.txt" and "test2.txt " Wrse the registration number, name and marks obtained in first test into testl txt" and same details obtained in second test into "test2.txI" Read the contents of test l.txt" and "test2.txt
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
