Have anyone used gMSA account in SQL JDBC Connection?

Wonder how gMSA account can be used in SQL Server JDBC connection URL. Is it really possible to use gMSA account for SQL JDBC connectivity? If yes, Please share the steps for the connectivity.

I don't think that is possible - the purpose of MSA (gMSA) accounts is to allow services to run on the servers where it has been setup with permissions.

A JDBC connection is not a service based connection - so any managed service accounts cannot be used.