Static method,new thread performance question

Posted by ylazez on Stack Overflow See other posts from Stack Overflow or by ylazez
Published on 2010-06-14T18:22:20Z Indexed on 2010/06/14 21:52 UTC
Read the original article Hit count: 186

Hey guys i just have two questions about two methods used in many controllers/servlets in my app:

1-what is the difference between calling a static method in a util class or a non static method (like methods dealing with dates i.e getting current time,converting between timezones), which is better ? 2-what is the difference between calling a method(contain too many logic like sending emails) in the controller directly or running this method in a different thread ?

© Stack Overflow or respective owner

Related posts about java

Related posts about best-practices