What kind of dependency is between number of methods, or length of source code of a class to performance (memory usage, speed of execution )? It is better to create as simple class as possible, or I can implement as may function as I want to one class? Does Java load whole class to memory, when object is accessed by interfaces?
Share
You’re thinking about it for the completely wrong reason.
Forget about performance. It does not matter in this question. At all.
Huge classes are very bad because they are hard to maintain. They’re hard to understand, probably violate the Single Responsibility Principle massively or even harbor duplicated code.