Skip to content
BENIBIX Learn

Python, Java and C#

Level 3 · General-purpose and systems languages

Three general-purpose languages that can build almost anything. What each is best known for, and how the same Hello World looks in all three.

Course contentsLesson 7 of 12

Level 3 · General-purpose and systems languages

  1. Python, Java and C#
  2. C, C++, Rust and Go

Level 4 · Languages for phones

  1. Swift, Kotlin and Dart

Level 5 · Data and functional languages

  1. R, Julia and MATLAB
  2. Haskell, Scala and Elixir

Level 6 · Scripting languages

  1. Shell Scripts, Perl and Lua

After this lesson you can

  • Say what Python, Java and C# are each known for
  • Compare how much code each needs for a small job
  • Pick one of the three for a given job

13 mincovers 3 glossary entries

Worth reading first: Static and Dynamic Typing

What Python, Java and C# are each good at

Python, Java and C# are general-purpose languages: each can build almost any kind of program. They differ in how they feel and where they are used most. Hello World is 1 line in Python and about 5 lines in Java or C#. That gap says a lot about each one.

Python was first shared in 1991 and is built to be easy to read. It is dynamically typed and interpreted. It leads in data work, machine learning and AI, and it is a common first language. It is also used for scripts and websites. Its weak spot is speed, which it gets around by calling fast code written in C.

Java dates from the mid 1990s and runs on the Java Virtual Machine, or JVM. The code is compiled to bytecode once, and any machine with a JVM can run it. That promise, write once and run anywhere, made it a favourite for big business systems. Banks and large companies run a lot of Java.

C# is Microsoft's language, from around 2000, and part of .NET. It looks a lot like Java and works in a similar way, with its own runtime. It builds Windows apps and web servers. It is also the language of the Unity game engine, which many phone games are made with.

Java and C# check every type before the program runs. That makes them longer to write, and safer to change in big teams. Python trades that safety for speed of writing. It does now let you add type hints if you want them.

Which to pick? Python for data, AI, scripts and a first language. Java for Android work or big business systems. C# for Windows apps or games in Unity. All three have huge job markets, so none of them is a dead end.

A common mix-up is thinking Java and JavaScript are related. They share four letters and some curly brackets, and that is all. Two firms made them, for two jobs.

Which of the three fits

  1. 1

    Python

    Pick it for data, AI, quick scripts, or as a first language.

  2. 2

    Java

    Pick it to work on a big firm's old system, or on Android next to Kotlin.

  3. 3

    C#

    Pick it for Windows apps, .NET web servers, or games made in Unity.

One line against five. The extra lines in Java and C# are the structure their rules ask for.

Worked example

Emma chooses for three teams

Emma advises 3 teams. The data team gets Python for its 40 analysis scripts. The bank team stays on Java, which its 2 million lines already use.

The game team picks C#, because it is building in Unity. Each choice follows the job, not a ranking.

The words for this lesson3

Check yourself

Which language is used to make games in the Unity engine?

Finished this lesson?

Marking it complete also marks its 3 glossary entries learned, which updates your roadmap and your saved page. 0 are already marked.