I know that I can use Object as the parameter type , but then I have to cast to the class I want.
My question is: Can I do something like that
public void doSomething( <T extends Person> person ) { Student student = person ; } like what we can achieve with return type in java
public <T extends Person> T findPerson() { ;;;;;} Student student = findPerson(1) ; English is not my native language, so sorry if the question is not clear enough