is mysql-connector-java-8.0.23.jar ok for Mysql5.7 code example
Example: mysql-connector-java-8.0.16.jar download
Download of MySQL-Connector for Java: https://dev.mysql.com/downloads/connector/j/
Download of MySQL-Connector for Java: https://dev.mysql.com/downloads/connector/j/