Skip to content

Redundancy of code #6

@vuyanidaweti

Description

@vuyanidaweti

For your factorial code why didn't you use static methods for Iterative and Recursion methods. This will help not create a new instance on your code which adds memory on your heap memory.
Instead you will directly call the methods when JVM calls the main method

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions