Thursday, February 14, 2008

Dynamo doStartService()

ATGDynamo:
  This method will be called automatically at the time of component load..
   " public void doStartService() throws ServiceException "
 
  where as
    " public void doStartService(<argtype> <argname>) "
 
  wont..
 
 

Thursday, February 7, 2008

Java Trick : null in string comparison

String str = "null";
 
 
if ( str == "null") {
 System.out.println(" String value is 'null');
} else {
   System.out.println(" String value is not 'null');
}
 
Output:  " String value not 'null' "
 
if ( "null".equals(str)) {
 System.out.println(" String value is 'null');
} else {
   System.out.println(" String value is not 'null');
}
 
Output:  " String value 'null' "