Home > Back-end >  JAVA generics casts
JAVA generics casts

Time:11-20

List<?> List2=this. DbHelper. This (hql2);//dbHelper is a database operations class,
Borrowp_Detail=(Borrowp_Detail) list2. Get (0);//Borrowp_Detail is a javabean, which defines some database field, all the get and set methods

In the above code generic list2 excuse me is how to populate the Borrowp_Detail javabean in? What is the principle, no see see how list2 by casting is automatically filled in,
  • Related