Java Development
-
Parse XML file with DOM
This is an example of how to parse an xml file using a DOM Document. The DOM Document interface represents…
Read More » -
Get element attributes in SAX XML parsing
In this example we shall show you how to get an Element’s Attributes using SAX XML parsing. Simple API for…
Read More » -
Parse XML file with SAX
With this example we are going to demonstrate how to parse an XML file with SAX. Simple API for XML…
Read More » -
Dinning Philosophers deadlock example
This is an example of the Dining Philosophers’ problem. A short description of the problem shows that there are N…
Read More » -
Application exits when all daemon threads exit
In this example we shall show you how to create a daemon thread in order to force an application to…
Read More » -
Daemon Thread example
With this example we are going to demonstrate how to create a daemon Thread. We have implemented a class, MyDaemonThread,…
Read More » -
CyclicBarrier example
This is an example of how to use a CyclicBarrier. A CyclicBarrier is a synchronization aid that allows a set…
Read More » -
CountDownLatch example
In this example we shall show you how to use a CountDownLatch. The CountDownLatch is a synchronization aid that allows one…
Read More » -
Multiple access example
With this example we are going to demonstrate how to have multiple access over an object. The example describes the…
Read More » -
Return a value from a thread
This is an example of how to return the value of a Thread. The steps of the example are described in…
Read More »