I have a class that basically parses a file and stores results in a hashmap , this class should handle all files in a directory (usually <10 files) . The process is linear with a single thread.
for the sake of best practice, should it be a static or dynamic class ?
If calling your parsing method makes sense even when no ‘object’ has been created and initialized, use a
staticmethodie: do not use
When you can easily do the following:
Java: when to use static methods