title: MongoDB java connection in Mongodb java driver 3.12.1
body: <p>I have mongodb 4.0 install in my Ubuntu 18.04.
  I am using java-mongo-driver 3.12.1
  I am uploading my code you can see that i have check different type of connections but it's not working.</p>
  
  <p><a href="https://i.stack.imgur.com/AvA3f.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AvA3f.png" alt="enter image description here"></a></p>
  
  <p>How to solve this problem?</p>