Results 1 to 5 of 5
Thread: Multiple private methods
- 01-04-2011, 02:49 PM #1
Member
- Join Date
- Jan 2011
- Posts
- 2
- Rep Power
- 0
- 01-04-2011, 02:56 PM #2
You get the sames advantage as you always get from breaking a method up into multiple methods. Whether the method is private or public doesn't really make a difference.
How to Ask Questions the Smart Way
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
- 01-04-2011, 02:59 PM #3
Have you tried anything like this through code? Is there any code snippet that you have stuck up with while trying this?
Just checking,
GoldestJava Is A Funny Language... Really!.gif)
Click on * and add to member reputation, if you find their advices/solutions effective.
- 01-05-2011, 09:35 AM #4
Member
- Join Date
- Jan 2011
- Posts
- 2
- Rep Power
- 0
thanks all..
i read making unnecessary multiple public mathod create performance issue where as for private method it's not as private is like final which doesn't have any reference outside. So apart from this advantage i just wanted to know is there any other concern may have... This came up in a code review session where as the single method is broken into multiple private methods.
- 01-05-2011, 01:05 PM #5
I could see it being a design issue because you might not want to give access to all of the methods to just any class, but I'm not sure that would impact performance at all. Where did you read this?
I'm not sure what you're saying here.
If you're in a code review, you pretty much should probably just listen to the reviewer. You might also look into profiling your program to see any actual performance changes (or the lack thereof).How to Ask Questions the Smart Way
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
Similar Threads
-
problems with multiple methods and paramaters...
By silafirion in forum New To JavaReplies: 13Last Post: 12-07-2010, 01:10 AM -
How does ObjectOutputStream access private writeObject(ObjectOutputStream) methods?
By kreyszig in forum Advanced JavaReplies: 17Last Post: 10-14-2010, 10:26 PM -
using multiple methods for graphics
By jforce93 in forum Advanced JavaReplies: 3Last Post: 04-25-2010, 06:05 PM -
JDBC that multiple methods will use
By evermore in forum JDBCReplies: 3Last Post: 03-16-2010, 07:27 AM -
text box listeners and returning multiple strings from methods
By int80 in forum New To JavaReplies: 5Last Post: 07-18-2008, 04:30 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks