i want to know what is the difference between mongoClient
and mongoConnection
and what is the difference between these two codes
serverAddress=new ServerAddress("Localhost",27017)
client= MongoClient(serverAddress)
testDB = client("testdb")//get database Name
collection = testDB("mycol")//get collection Name
and
serverAddress=new ServerAddress("Localhost",27017)
con= MongoClient(serverAddress)
testDB = con("testdb")//get database Name
myCollection = testDB("mycol")//get collection Name
please explain what is the difference