Using Collections.copy for list

Sunday, March 14th, 2010

Using java Collections to copy array list I have seen lot’s of people using Collections.copy and most of times you see this error on console Exception in thread "main" java.lang.IndexOutOfBoundsException: Source does not fit in dest. Normally we use following code to copy an array-list ArrayList<String> items = new ArrayList<String>(); items.add("item 1"); items.add("item 2"); items.add("item [...] Read more »

Introduction of Castor in Java

Saturday, March 6th, 2010

Castor is an open source data binding framework for moving data from XML to Java programming language objects and from Java to databases. It’s the shortest path between Java objects, XML documents and relational tables. Castor provides Java-to-XML binding, Java-to-SQL persistence, and more. Castor is made up of (independent) modules as follows:- Castor XML – [...] Read more »

Introduction to EJB

Wednesday, March 3rd, 2010

Enterprise Java beans -is a managed, server-side component architecture for modular construction of enterprise applications. EJB server is a high-level process or application that provides a run-time environment to support the execution of server applications that use enterprise beans. Enterprise beans live in an EJB container (a runtime environment within a J2EE server). The EJB [...] Read more »

Reflection Api in java

Tuesday, October 20th, 2009

The Reflection API allows Java code to examine classes and objects at run time. The new reflection classes allow you to call another class’s methods dynamically at run time. With the reflection classes, you can also examine an instance’s fields and change the fields’ contents. Reflection is commonly used by programs which require the ability [...] Read more »