Archive for the ‘Java’ Category

Page 3 of 3123

Java 5 Generics – Changing for good

Posted on April 4th, 2007 in Issues, Java | 1 Comment »

I had recently tried some programming in JDK 1.6 which falls in the league of Java 5. The Eclipse environment started behaving strange in someway which I had not expected. The code which was irritating me was the one which included a collection object

List list = new ArrayList();

The Eclipse IDE flashed a warning beneath the 2nd line of the code.

“Type safety: The method add(Object) belongs to the raw type List. References to generic type List<E> should be parameterized”

Read the rest of this entry »

Convert Date to String and String to Date in Java

Posted on March 28th, 2007 in Java | 12 Comments »

This is quite a common query which is faced by a Java Programmer while dealing with dates. The problem is when a form value returns back the date value input by the user in the form of a string. The application might be using a Date object to hold the date values in the application.

So in order to convert the String date value to Date object you might be tempted to use the simplified conversion format which is,

String str = "26/08/1994";
Date date = new Date(str);

But the problem with the above step is that the Date() constructor is now deprecated in JDK1.5 onwards and hence won’t be a good practice to use the deprecated ones.

So the solution for this is to use the SimpleDateFormat object is,

Read the rest of this entry »

SCDJWS study material and resources – The most searched thing

Posted on March 17th, 2007 in Java, Java EE, SCDJWS, Web Services | 2 Comments »

Where do I learn from for SCDJWS? Its a good question and probably the best question. In the arena of SCDJWS you should mark my words, you would never go through with a single source of material in your hand. Well its not to scare you though, its just a matter of fact. The vast scope of SCDJWS makes you learn from various sources. I have told you about how to get a kick start in preparing for SCDJWS, but haven’t yet mentioned from where you should prepare. It was a whole new section in itself and requires a detailed information. You don’t have to fret because Ill give you the thing you crave for. The material of course. Not in a bundled form but a set of links which would see you through in flying colors in the final test. Read the rest of this entry »

SCDJWS preparation – a kick start guide

Posted on March 15th, 2007 in Java, Java EE, SCDJWS, Web Services | 3 Comments »

If you are looking for getting started with preparing for SCDJWS (Sun Certified Developer for Java Web Services) certification then its very normal that you will be stuck on the material required for it. SCDJWS in nature is very vast in its scope. So you have to be very careful in choosing the appropriate resources. There are many varied implementations on the usage of the API’s which help you implement J2EE web services but you have to remember one thing. You are giving the SUN certification, so its but obvious that you have to use the API’s that SUN provides for creating the J2EE web services. There are many different API versions of the same J2EE web services specifications like those from Apache, BEA, IBM, but since the implementations can be somewhat different from each other, you always have to study the core API’s provided by SUN. This will help you avoid confusion. Moreover, studying SUN API’s is more beneficial since they are present in any vendor implementation. The vice versa is not true. Read the rest of this entry »

Groovy with Grails – Java’s fight back to Ruby on Rails

Posted on March 12th, 2007 in Ajax, Java | 5 Comments »

Ruby on Rails is undoubtedly the fastest developing framework for agile web development which one can witness in various discussion groups and blogs these days. Being a developer from the Java community what you can do most is to sit and watch the power being unleashed by Ruby and do nothing about it. It seems as if you are being washed away by some tidal wave and you have no savior at all!

But life in IT is not as shrewd as told, as competitors will always capture on the current reigning stuff and quickly incorporate themselves to get matured to the instant market needs and demands. Ruby developed about a decade ago lied dormant during the time when bigwigs like J2EE, .NET, PHP almost had taken over the web development world by storm and nothing seemed to change the course until AJAX came into picture. Read the rest of this entry »

Page 3 of 3123