SimpleDateFormat 2005-09-20 - By SUBSCRIBE EJB-INTEREST anonymous
Back Hi, Is there a better way to do the below in a multithreaded application?
java.text.SimpleDateFormat dateFormat = new java.text.SimpleDateFormat ("MMddyyyy"); String formatedString = dateFormat.format(new Date());
I have the below code within a method in a class.
Since, an instance of java.text.SimpleDateFormat will be created for every call of the method, I was wondering this would create lot of objects in heap.
Thanks in advance,
=========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
|
|