+ 4

What are the main differences between C++, Java and Python?

They are all general purpose languages. What are the main differences between them? I find that most colleges teach C++ first to the computer science majors. What do you think is the main reason for this, and do you think it will change in the near future?

9th Sep 2018, 4:19 PM
Andrew
Andrew - avatar
7 Answers
+ 7
Well java is an OOP language everything has to reside within a class even to run a simple program, python and cpp are procedural based languages which can utilize OOP concepts, cpp is able to directly interact with computer components and memory and does not protect against array index values overflowing, java has automatic garbage collection while in cpp you must manually handle the removal of any unused objects or risk running out of memory, idk a whole lot about python. i understand cpp from a conceptual standpoint because I've read a college textbook on the the language but dont write it much, java is my choice language that I have invested in and i dabbled with python when i was 16 so I cant really say a whole lot about it!
9th Sep 2018, 4:53 PM
StealthyTaco
StealthyTaco - avatar
+ 4
Robert Atkins What you're thinking of is procedural languages. Functional languages are an entirely different can of peanuts.
10th Sep 2018, 5:06 AM
BlazingMagpie
BlazingMagpie - avatar
+ 2
Robert Atkins Well explained. Thanks.
9th Sep 2018, 5:26 PM
Jan Ơtěch
Jan Ơtěch - avatar
+ 2
BlazingMagpie i updated with a correction, thank you, I will have to look it up and find out what it is!
10th Sep 2018, 10:38 AM
StealthyTaco
StealthyTaco - avatar
+ 2
Designers may desire for hot more recent ‘languages’ like Instant, Corrosion, and Scala, but their companies prefer stalwarts like Java. Yet Python, a common terminology that also is getting durability in companies, dollars the craze completel Based on a study of more than 3,000 programming assessments specified by companies, technological hiring system HackerRank found sectors as a whole are slowly to look at new ‘languages‘. “Employers are still mostly looking for powerful fundamental skills in good old Java, Python, and C. Obviously, they’ve targeted on facilities durability, security and scalability,” HackerRank said. Read More:https://crbtech.in/java-training/businesses-stick-java-python-c/
11th Sep 2018, 6:56 AM
kiran sahu
kiran sahu - avatar
+ 2
and once u understand cpp u will have an easier time learning the others
11th Sep 2018, 4:40 PM
Leoulg
Leoulg - avatar
+ 1
cpp is tought bc it is the best way to learn how  ur computer manages memory and make u think more critically on each line of code u write it is also closer to the hardware(arduino boards are programed in cpp too).
11th Sep 2018, 4:37 PM
Leoulg
Leoulg - avatar