Java generic Method is defined as follow
<T> void printType(T anyType)
{
System.out.println(anyType.getClass().getName());
}
It says that I can pass any object into it.for example ,conside I pass an object A,here want to constraint on the object A ,A should have a "int" parameter in it and its value should be greater than 10 otherwise ,the method won't accept the object.How It can be done ?.
set some precondition for the object pass into method