Posts

Showing posts from November, 2007

Tiger Tiger Burning bright.....

Does the title speak to itself, well it was intended to, but if its not, read through so that it makes sense. Java came with its version 5.0 long back, and the advantages of the same are posted everywhere in the web. Thought, Let me also put my contribution :-) I was working with the earlier versions of java [1.42] until i joined my new company in July 07. I realized the power of tiger only when i literally starting doing development using Java 5.0 The main concepts i would like to share are 1. Java Generics 2. Advanced features of Collections The items in the list are of utmost concern to us, the developers. Java 5.0 has made developers life lot more easier. Java Generics By introducing the java generics, the developers now are not required to do the class typecasting at each and every point. An example would me more apt. Here is a typical usage of that sort: List myIntList = new LinkedList(); // 1 myIntList.add(new Integer(0)); // 2 Integer x = (Integer) myIntList.iterator().next(...

Full Outer Join

Let us start our blog knowledge with Database [That was my first step into the world of software !]. During my days at one of the consulting companies, i was working as a Data conversion specialist, additional to my Java Lead role [Its always like this in consulting, you will be given huge amount of work with less time to complete them uhhh..] One of our business requirements was to get the records from two tables, together. The is a column which is present in both table A & B. i.e Table A had Col1 & Table B also had Col1. Now, when entering data, Table A will have some rows, Table B will have some rows. We have to query both the tables, get the records and show them in same line if they both have same data for Col1 in their tables. OK, in normal world, i would have been thinking of putting two outer joins and then integrating the results in the Java using some crap logic. This is due to the fact that an outer join extends the result of an inner join by including rows from on...