A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
singleton class performance isssue.
Joined: Mar 05, 2009
Mar 17, 2009 06:57:54
singleton classes creates the performance issues.
suppose if I get the instance of a class and from that I'm calling a method 10 times.
Will it affect the performance for my program.
Joined: Aug 03, 2008
Mar 17, 2009 07:21:01
Well I don't think singleton will create any performance issues unless the methods in the singleton class are synchronized...
SCJP 6 | SCWCD 5 |
Javaranch SCJP FAQ
I agree. Here's the link:
subject: singleton class performance isssue.
what is a singleton class?
Singleton Class ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013