public static void main(String[] args)
	{
		
		ObjectFoo foo1 = new ObjectFoo();
		ObjectFoo foo2 = new ObjectFoo();
		
		foo1.setFoo(new Boolean(false));
		Boolean b = (Boolean)foo1.getFoo();
		
		foo2.setFoo(new Integer(10));
		Integer i = (Integer)foo2.getFoo();
		
		ObjectFoo foo3 = new ObjectFoo();
		foo3.setFoo(new Boolean(false));
		
		String str = (String)foo3.getFoo();
		/**
		 * Exception in thread "main" java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
	at generics.ObjectFoo.main(ObjectFoo.java:32)

		 */
		
		
		
		
		
		
		
		
		
		
		
		
	}