Hi, I have following list of users. StudentBean and ProfessorBean are the subtypes of UsersBean.
List<? extends UsersBean> users = this.getUsers(locationId);
for(UsersBean vo :users) { System.out.println("Name : "); }
Here i want to print professorbean's info OR StudentBeans's info. Is there any way to get professor or student bean methods without explicit cast ?