
jasmine kaur
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
http://www.jamonapi.com/ - a fast, free open source performance tuning api.
JavaRanch Performance FAQ
"I'm not back." - Bill Harding, Twister

jasmine kaur
1) I have observe that unused array objects and Class object have been declared in the code so it should be removed from the code.
2) I have observed that while exception handling they have created the object of GenericCmdAppError in every method in the class, so my question is this cant we create an object of GenericCmdAppError once in the class use the refernce of that object.
3) In the code we are closing connection Object in some of the methods whereas ResulSet and PreparedStatement objects are getting closed everywhere.So Connection object should be closed in every transaction , tell me Iam right or not.

jasmine kaur
Well I would like to discuss when we create an arrays and class object in the code it takes memory and same thing goes with unused global variables , as they get memory when object creation takes place so we should remove it.
I have also observed that System.out.println(""); statement is also been used and should be remove as it unnecessary makes an overhead tell me if Iam wrong
http://www.jamonapi.com/ - a fast, free open source performance tuning api.
JavaRanch Performance FAQ
Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
jasmine kaur
