Explore BrainMass

Explore BrainMass

    explain between two programming languages

    Not what you're looking for? Search our solutions OR ask your own Custom question.

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    I have two programs(Java and C++). They looks similar. But I need to explain why C++ is longer than java and what else to explain such as memory, time, build-in-function and so on...

    See attached file for full problem description.

    © BrainMass Inc. brainmass.com March 4, 2021, 7:31 pm ad1c9bdddf


    Solution Preview

    1. Reason why C++ is longer:
    C++ has much less built-in functions defined than Java. So every utility classes, such as stack, need to be build by the application. So the application program needs to define the stack class, including every utility functions (methods) associated with this class, such as push(), pop(), peek() and search(). On the other hand, Java has a built-in package
    ava.util that defines the utility classes ...

    Solution Summary

    This job explains between two programming languages.