New features in JDBC 3.0

java-thumbnail

This article provides an introduction to the array of core new features available in JDBC 3.0. More specifically, the features ‘supporting save points’, ‘using parameter metadata’, ‘updating large objects’ and ‘auto generated keys’ are discussed. Wherever possible, to get a hang of it, relevant code samples have been provided in the respective sections. Download Source […]

JavaBeat Newsletter-2: New and noteworthy in Java Ecosystem

Interesting blog posts from JavaBeat: Exploring the enhancements to the java.nio package as part of Java 7 we wrote about watching a directory for changes and also looked at few methods in the Files class. Writing agents in Java to instrument the class files/byte code. Using Fork-Join framework introduced as part of Java 7. Getting […]

A peek into the Files utility which is part of java.nio package in Java 7

java-thumbnail

We recently wrote about watching a directory using the new APIs introduced as part of Java 7. In this post let me throw some light on another class added to the java.nio package as part of Java 7 update- java.nio.file.Files. Another piece of information related to this is that complete java.nio.file package was added as […]

Java HelloWorld vs Scala HelloWorld

scala-thumbnail

As a first step into learning Scala and as one who is familiar with Java, let us compare the customary Helloworld programs in Java and Scala. You might already know that to run a Java program, there must be a public class with a┬ámain┬ámethod that takes one parameter, a String[ ], and has a void […]

Introduction to Java Agents

java-thumbnail

In this article we will discuss about Java Agents. Java Agents are software components that provide instrumentation capabilities to an application. In the context of agents, instrumentation provides the capability of re-defining the content of class that is loaded at run-time. We will discuss this in more detail in the further sections. Download Source Code: […]

Implementing WatchService API in Java 7 to monitor the directory changes

java-thumbnail

In Java 7 there were quite a lot of new things added to the File NIO package (java.nio)- there was a new java.nio.file package and java.nio.file.attribute package. Main highlights of the java.nio.file package are the following classes: Path: Its an object used to locate a file or directory in the file system. The value contained […]

Merge Sort implementation using Fork-Join Framework in Java 7

In our previous post we went through the basics of Fork-Join Framework introduced as part of Java 7. In this post lets apply the same Fork-Join to implement Merge sort algorithm. The pseudo code for Merge sort can be found here. also read: Java 7.0 Tutorials New Features in Java 7.0 G1 Garbage Collector in […]

A simple Location and Weather mashup using Gaelyk Framework

groovy-thumbnail

In our sample Gaelyk application here we stopped at just obtaining the location information. In this post lets update that application to fetch the Weather information as well. also read: Groovy Tutorials Creating JSON using Groovy Developing Groovy based web application and deploying to Google App Engine For the weather information we make use of […]

Simple introduction to Fork-Join Framework in Java 7

java-thumbnail

Fork-Join Framework was added as part of Java 7 which makes use of the ExecutorService interface to distribute tasks to the worker threads in the thread pool. The difference in Fork-Join is that the ideal worker threads can steal queued subtasks from the other tasks and execute them. also read: Java 7.0 Tutorials New Features […]

Handling/Avoiding Null’s in Java using Guava versus Scala

java-thumbnail

There was a discussion about nulls in the latest episode of JavaPosse. Having been inspired from that discussion and with an urge to check out Google Guava library, I came across a way to handle Null’s in Guava which is very similar to the way Scala handles. also read: Java Tutorials Java EE Tutorials Design […]