Latest Posts

JDOM Write XML File Example from Object

In last tutorial we learned basics of Java JDOM and how we can read XML file to Object. In this tutorial we will learn about JDOM Write XML File example. JDOM Write XML File JDOM….

JDOM Parser – Read XML file to Object in Java

JDOM parser provides us a great Java XML API to read, edit and write XML documents easily. JDOM provides wrapper classes to chose your underlying implementation from SAX Parser, DOM Parser, STAX Event Parser and….

Java SAX Parser Example

SAX Parser in java provides API to parse XML documents. SAX parser is different from DOM parser because it doesn’t load complete XML into memory and read xml document sequentially. SAX Parser javax.xml.parsers.SAXParser provides method….

Java XPath Example Tutorial

Welcome to Java XPath Example Tutorial. XPath provides syntax to define part of an XML document. XPath Expression is a query language to select part of the XML document based on the query String. Using….

Java StAX Parser Example to read XML file

We can use Java StAX parser to read XML file. Java Streaming API for XML (Java StAX) provides implementation for processing XML in java. StAX consists of two sets of API – cursor based API….

Java Multithreading Interview

Java Multithreading Concurrency Interview Questions and Answers

Today we will go through Java Multithreading Interview Questions and Answers. We will also look into Concurrency interview questions and answers because both multithreading and concurrency go hand in hand. Thread is one of the….

Memcached Tutorial

Memcached is Free & open source, high-performance, distributed memory object caching system. Memcached is used by almost all the major websites with huge data, for example YouTube, Wikipedia, Twitter etc. Memcached is a very popular….

How to write XML file in Java (DOM Parser)

Earlier we learned how to read XML file and how to edit XML file in java using DOM Parser, today we will learn how to write an XML file in java using DOM Parser. Here….

AtomicInteger in Java

Today we will look into AtomicInteger in Java. Atomic operations are performed in a single unit of task without interference from other operations. Atomic operations are necessity in multi-threaded environment to avoid data inconsistency. AtomicInteger….

Java Callable Future Example

Java Callable and Future are used a lot in multithreaded programming. In last few posts, we learned a lot about java threads but sometimes we wish that a thread could return some value that we….

Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages