Home » 2011 » March

Monthly Archives: March 2011

A glimpse at Java 7 MethodHandle and its usage

java-logo

Due to Java’s Reflection API we have been able to inspect and alter program execution at runtime. In particular, we can observe interfaces/classes/methods and fields at runtime without knowing their names at compile time. JDK 7 introduces a new player to this dynamic/runtime inspection, the method handle (i.e. a subclass of the abstract class java.dyn.MethodHandle). Method handles gives us unrestricted ...

Read More »

Android HTTP Camera Live Preview Tutorial

android-logo

The Android SDK includes a Camera class that is used to set image capture settings, start/stop preview, snap pictures, and retrieve frames for encoding for video. It is a handy abstraction of the real hardware device. However, the SDK doesn’t provide any camera emulation, something that makes testing camera enabled applications quite difficult. In this tutorial, I am going to ...

Read More »

Best Of The Week – 2011 – W13

jcg-logo

Hello guys, Time for the “Best Of The Week” links for the week that just passed. Here are some links that drew JavaCodeGeeks attention: * GlassFish Server 3.1 Supports JavaEE 6 Web Profile, Clustering and High Availability: An overview of some new features supported by the latest version of GlassFish application server. Those include support for the JavaEE 6 Web ...

Read More »

Understanding and Extending Java ClassLoader

java-logo

The Java ClassLoader is one of the crucial but rarely used components of Java in Project Development. Personally I have never extended ClassLoader in any of my projects but the idea of having my own ClassLoader that can customize the Java Class Loading thrills me. This article will provide an overview of Java Class Loading and then move forward to ...

Read More »

Java JSON processing with Jackson

json-logo

JSON (Javascript Object Notation) is becoming a very popular data exchange format. While developing Web applications using Javascript frameworks like YUI, ExtJS, DOJO etc., we can use either XML or JSON to exchange the data between the client and server. Normally we get the response from the server in terms of java objects. Then in Servlets or Action classes we ...

Read More »

Best Of The Week – 2011 – W12

jcg-logo

Hello guys, Time for the “Best Of The Week” links for the week that just passed. Here are some links that drew JavaCodeGeeks attention: * Mastering Spring MVC 3: A presentation of Spring’s MVC3 programming model, detailing with examples: mapping HTTP requests, getting a request input, generating responses, rendering views, data conversion and validation, handling exceptions and testing. You can ...

Read More »

Doclava: Custom Javadoc Doclet from Google

java-logo

Doclava is a custom Javadoc Doclet from Google, used by Google Guice (see their slight cooler Javadocs). Doclava uses JSilver as its templating engine, a pure-Java implementation of Clearsilver. I personally like the idea of Federated Documents to allow documentations to link and integrate to each other on open projects. Here are the main differences between Doclava and the standard Doclet: Refreshed ...

Read More »

Best Of The Week – 2011 – W11

jcg-logo

Hello guys, Time for the “Best Of The Week” links for the week that just passed. Here are some links that drew JavaCodeGeeks attention: * Good code is cheap code: An article where the author claims that good code is cheap code, i.e. code that is easy to maintain, is minimally complex and can be easily extended. He also provides ...

Read More »

Servlet 3.0 Async Processing for Tenfold Increase in Server Throughput

java-interview-questions-answers

Servlets are the main component for handling server side logic in Java and the new 3.0 specification introduces some very interesting features with asynchronous processsing being one of the most important. Async processing can be leveraged in order to develop highly scalable web applications. Web 2.0 sites and AJAX applications can be efficiently built with this feature. Tomasz Nurkiewicz, one ...

Read More »
Want to take your Java Skills to the next level?
Grab our programming books for FREE!
  • Save time by leveraging our field-tested solutions to common problems.
  • The books cover a wide range of topics, from JPA and JUnit, to JMeter and Android.
  • Each book comes as a standalone guide (with source code provided), so that you use it as reference.
Last Step ...

Where should we send the free eBooks?

Good Work!
To download the books, please verify your email address by following the instructions found on the email we just sent you.