Code example for InvalidClassException

0
obj = objIn.readObject();
		} 
		catch (ClassNotFoundException ex)
		{ 
			throw new InvalidClassException(ex.toString());
		} 
		 
		return obj;
	} 
 
	/** 
	 * Deserializes an array from a given <code>InputStream</code>. 
	 *  
	 * @param in		The <code>InputStream</code> to  
	 *					deserialize an object from. 
	 *				 
	 * @param elemType	The class denoting the type of the array 
	 *					elements. 
	 * @param length	The expected length of the array, or -1 if