Accessing functions from Java Generics

Can you be more specific what “handle” means there? If you want to access fields/methods other than those inherited from Object then you need to have a common type with this field/method they inherit from using the “T extends” syntax I posted earlier. Otherwise your only option is runtime checking with instanceof and casting.