Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Java in General
methods and classes
bhuvan sundar
Ranch Hand
Posts: 104
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi
I have a query regarding methods and classes....
Which of the following is more efficient?
1) more methods in a class
2) more classes
Lets say that I've a class with 10 methods. I then split up those methods into 5 different classes. Which will have high performance?
Can someone help me in this?
Norm Radder
Rancher
Posts: 5008
38
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Why don't you write a
test
program, time the different tests and report back with the results!
Then we'd all know.
Steve Simon Joseph Fernandez
Ranch Hand
Posts: 35
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
The question itself is irrelevant - classes and methods inside them are decided based on design principles and your requirements - and no matter which class you put your method in, it will have the same "performance".
_steve.
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Wrapper classes!
exact differance between abstract class and interface
Class diagram gettting cluttered
observer and observable
Interface V/S Abstract class
More...