@@ -0,0 +1,1012 @@
+package com.javarush.task.task20.task2017;%0A%0Aimport java.io.IOException;%0Aimport java.io.NotSerializableException;%0Aimport java.io.ObjectInputStream;%0Aimport java.io.Serializable;%0A%0A/* %0A%D0%94%D0%B5%D1%81%D0%B5%D1%80%D0%B8%D0%B0%D0%BB%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F%0A*/%0Apublic class Solution %7B%0A    public A getOriginalObject(ObjectInputStream objectStream) %7B%0A        A a = null;%0A        try %7B%0A            a = (A) objectStream.readObject();%0A        %7D catch (NotSerializableException e) %7B%0A            e.printStackTrace();%0A            return null;%0A        %7D catch (IOException e) %7B%0A            e.printStackTrace();%0A            return null;%0A        %7D catch (ClassNotFoundException e) %7B%0A            e.printStackTrace();%0A            return null;%0A        %7D catch (Exception e)%7B%0A            e.printStackTrace();%0A            return null;%0A        %7D%0A        return a;%0A    %7D%0A%0A    public class A implements Serializable %7B%0A    %7D%0A%0A    public class B extends A %7B%0A        public B() %7B%0A            System.out.println(%22inside B%22);%0A        %7D%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A%0A    %7D%0A%7D%0A

Task --> 2017