When there is an inheritance relationship between the parameters of the method with the same name, which one to call. {Series Basic Uncertainty Questions}

private void setResultTransformer(SQLQuery query, Class<?> resultClass);


private void setResultTransformer(Query query, Class<?> resultClass);


If the incoming query is of type SQLQueryImpl, it will enter the following method, why?

 

 

 

 

Collection types such as arrays cannot be cast?

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326680023&siteId=291194637