Question 11
Consider the code given below.
import java.io.*;class Coupon implements Serializable{ private String c_type="****"; private transient String code="****"; private String exp="****"; public Coupon(String type, String c, String e) { c_type = type; code = c; exp = e; } public String toString() { return c_type + ", " + code + ", " + exp; }}public class STest{ public static void main(String[] args) throws Exception{ var fos = new FileOutputStream("coupon.txt"); var os = new ObjectOutputStream(fos); os.writeObject(new Coupon("Accessories", "ACCNEW", "12/08/23")); var fis = new FileInputStream("coupon.txt"); var ois = new ObjectInputStream(fis); Coupon r = (Coupon)ois.readObject(); System.out.println(r);
}}What will the output be?