Load csv file into neo4j with java code

how to load the csv file into neo4j using java code and what dependencies can i use to load the file.

You just need the Java Bolt driver https://neo4j.com/docs/driver-manual/current/get-started/#driver-get-started-installation
Since LOAD CSV is just Cypher, you'd use the driver as you would for any Cypher queries https://neo4j.com/docs/driver-manual/current/cypher-workflow/#_overview