System.out.println("An instance of class: " + o.getClass().getCanonicalName() + " has been created"); Method somemethod=o.getClass().getMetho