Introduction to jQuery

jquery

jQuery is a free, open source JavaScript library intended to simplify multi-browser client side scripting. jQuery has very active developer community constantly improving its core and jQuery is the most famous JavaScript library as of today. The current version of jQuery is 1.8. We can use jQuery to manipulate DOM elements, send Ajax request, receive […]

Book Review : Java Persistence with Hibernate

book-review

Java persistence with Hibernate is the latest edition of bestselling Hibernate in Action series. This is one of the best and most comprehensive book for learning the Hibernate framework. If you are buying this book, keep in mind that this is most exhaustive which covers most of the things what you have to learn in […]

Book Review : Spring in Action

book-review

Spring in Action is the best selling book for the Spring framework. As the name says, it is full of action packed spring related examples and good explanation for the concepts. Let’s further review this book in detail to understand what is the content inside this book. This book is intended not only for the […]

How to create bounded taskflows in ADF using JDeveloper?

JSF-Thumbnail

Taskflows are a very useful feature in Oracle ADF which provide a modular approach for defining control flow in an application. It allows to create application flow graphs which can be tied together to build the complete application. So instead of considering an application as a collection of different JSF pages, in ADF we would […]

Book Review: Pro Java 7 NIO.2

The Pro Java 7 NIO.2 book is all about the latest enhancements to the File NIO APIs added as part of Java 7. The book covers New Path and Paths API: A brief overview of the Path and Paths classes and how these can be used to represent a file/directory. Also explained are the different […]

Reading file asynchronously in Java

java-thumbnail

We all are familiar with reading/writing file in a synchronous way. In Java 7 a new API was added to read/write the contents of the file asynchronously. The API is AsynchronousFileChannel. also read: Java 7.0 Tutorials New Features in Java 7.0 G1 Garbage Collector in Java 7.0 In this example lets look at how to […]

How to use Socket API for creating Client-Server application in Java

java-thumbnail

In this example we make use of ServerSocketChannel and SocketChannel to create a simple Echo application where in the Server would print the data sent by the client. also read: Java Tutorials Java EE Tutorials Design Patterns Tutorials Java File IO Tutorials The code is explained with the required comments: and the client which connects […]

How to use ByteBuffer in Java?

java-thumbnail

ByteBuffer API has been in Java since 1.4. The name itself suggests that these contain bytes of data. The data to be stored in the buffer can be Integer (int, long), Characters (char), Floating value (double), all these are converted into bytes before being stored in the buffer array. ByteBuffer can be of two types- […]

Lazy Initialization, Singleton Pattern and Double Checked locking

java-thumbnail

Lazy Initialization Lazy Initialization is a technique where one postpones the instantiation of a object until its first use. In other words the instance of a class is created when its required to be used for the first time. The idea behind this is to avoid unnecessary instance creation. But there are concerns related to […]

Visiting all the files and directories for a directory in Java using NIO2

java-thumbnail

At times we might want to search for some file in a directory traversing recursively into other directories with in that directory, I know getting the recursive program right at the first time is always a challenge. Or we might want to list all the contents of a directory. For all these operations the NIO2 […]