Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

c++ or Java for a computer science student

+3 votes
asked Dec 11, 2022 by Mayuresh kumar (220 points)

2 Answers

+1 vote
answered Dec 11, 2022 by Peter Minarik (101,360 points)
reshown Dec 14, 2022 by Admin
Either. Both.

It depends on what sort of projects you would like to do and what sort of libraries various languages offer you that help you with your projects.

C++ can be pretty fast, but you have to be mindful of memory management.

Java has garbage collection, so less memory management is needed.
0 votes
answered Dec 13, 2022 by SS21CO040 Maaz Khan (140 points)
Good Day Mayuresh Kumar. If you are just starting out to learn programming langauges then I'd recommend you to start with the C langauge. It'd really give you an insight towards hard-coding. It would be a problematic langauge if you started out with Python but it teaches you the absolute basics. Moving from C to C++ will better introduce you to concepts like classes. Functional programming is the approach a beginner should take as classes and objects on the go might go over-the-head. I am speaking from my own personal experience. Rest, the choice is yours. Thank You.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and receive answers from other members of the community.
...