Thread Semaphore and Mutex in Java

  • 30 May 2017
  • ADM

Thread Semaphore and Mutex in Java. Semaphore restrict the access to a resource for limited numbers of threads while mutex restricts the access to a single thread.


How to create tiny HTTP server in Java

  • 08 May 2017
  • ADM

How to create tiny HTTP server in Java using ServerSocket class.


How to get HTTP Response Header using URLConnection in Java

  • 05 May 2017
  • ADM

How to get HTTP Response Header using URLConnection class in Java.


Enum examples in Java

  • 24 April 2017
  • ADM

Enum examples in Java. Simple enum usage. How to convert String to Enum object. Enum object with fields and methods.


How to convert XML file into properties data in Java

  • 04 April 2017
  • ADM

The java.util.Properties class come with a loadFromXML() method to convert an XML file to properties data.


How to convert properties file into XML file in Java

  • 04 April 2017
  • ADM

The java.util.Properties class come with a storeToXML() method to convert existing properties data into an XML file.