Tag Archives: java

Did you know? New things I learned about Servlets

I learnt few new things about Servlets recently 1. SingleThreadModel has been deprecated since 2.4 specification 2. Servlet’s init method should throw UnavailableException if it cannot complete its initialization Smart and funny ways to save money during recession

Posted in Technology | Tagged , | Leave a comment

Loading Files using Java in a location independent way

Location independent access to Java Resources is a nice tutorial if you would like to know how to load files in java without specifying absolute paths. In a nutshell its done by using methods getResource and getResourceAsStream method in class … Continue reading

Posted in Technology | Tagged | 1 Comment

Using Java Reflection to invoke a method with Array Parameters

Looking for a date or love? Click here to find one for free!! Find Singapore Apartment¬† and Room Rentals here India Stock Market blog Invoking a method that accepts array parameters using java reflection is a little bit tricky. The … Continue reading

Posted in Technology | Tagged , | 19 Comments

String or StringBuffer ? what about StringBuilder?

The usual advice is to use StringBuffer when you are going to mutate the String. The reason is well known – String is immutable and its costlier to create new objects than appending using StringBuffer.¬† But StringBuffer is thread-safe, meaning … Continue reading

Posted in Technology | Tagged , | 4 Comments

Java Custom Annotations – Runtime and Compile / build time processing

Looking for a date or love? Click here to find one for free!! Find Singapore Apartment¬† and Room Rentals here India Stock Market blog I am writing this as I learn about writing custom java annotations. I find that information … Continue reading

Posted in Technology | Tagged , , , , , , , | 8 Comments

which Ajax Framework to use??

I am looking at choosing an Ajax Framework for one of my projects. But as always there just too many frameworks to choose. It gives any java developer serious pain in the ass to choose a framework. Why the fuck … Continue reading

Posted in Technology | Tagged , , , , , | Leave a comment