In my opinion, it depends on your goal.
Lets broaden the field.
- Learning from scratch :
- Scenario 1 →
- Q-: If your dad asked you what you want for your birthday, and you chose a car, which transmission would you choose?
- A1: Manual → Go for C.
- A2: Auto → Go for Java.
- A3: My dad would never get me a car. (Practical thinking for 98.99% reader) → Python is for you.
- A4: Any of them, both suites me. → Anything from SQL or Ruby.
- A5. Manual, but I need some advanced specs. → C++
- A6. Manual, because I love retro → Best of luck for PHP.
- Scenario 2 →
- I have to learn programming only to cover the syllabus → Best of luck. Go and complete your syllabus. The rest of answer is not for you :)
- Scenario 3 →
- I want to show my friends. → Java or Python. (Or anything that your friends would want.)
- For making money
- I want to build up my career in tech giants.
- Google → Python
- Facebook → PHP
- Apple → Swift
- Windows → C#
- Amazon → JavaScript
- Web Startup Business →JavaScript
- 3D Gaming → C++
- Mobile Applications
- IOS → C
- Android → Java
- I want to build up my career in tech giants.
- Just for Hobby
- C++ , it is slightly harder to learn, but helps a lot to learn other languages.
Hope this helps.