How to sleep a thread in Java

  • 21 July 2016
  • ADM

How to sleep a thread in Java using Thread.sleep() method. Comparison between sleep millis an nanos.


How to connect to MySQL with JDBC driver

  • 20 May 2016
  • ADM

How to connect to MySQL database with MySQL JDBC driver. Get a new connection using DriverManager class.


How to convert Inputstream to String in Java

  • 12 September 2016
  • ADM

How to convert a InputStream object to String object in Java using BufferedReader and InputStreamReader classes.


How to create Singleton Design Pattern in Java

  • 14 May 2016
  • ADM

design pattern is a general solution to a common problem. The singleton pattern is used to restricts the instantiation of a class to one single object.