You are on page 1of 12

June 30th

Comparing and
Contrasting
Java vs Python
2
Let’s watch a video!
3
1.
Comparing and contrasting
Finding out differences and similarities

4
COMPARING CONTRASTING

To identify similarities To find differences


Also, too But
Similar Different from
Similarly However
Alike/ like On the other hand
Both Unlike
In the same way In contrast to
Same as Whereas
As well
5
COMPARING CONTRASTING
To identify similarities To find differences

6, 1, 5,
8, 2, 3, 7,
10, 4, 9,

1. Popularity 6. Dynamically typed language


2. Capability 7. Code separation by brackets
3. Object oriented 8. Code separation by whitespaces
4. Libraries and access to them 9. Speed
5. Statically language 10. Easy to use/learn
6
To identify similarities

COMPARING Also, too


Similar
Similarly
Alike/ like
Both
In the same way
Same as

Similarities between Python and Java


✔ Both the languages are battling for the top spot in the most popular programming languages.
✔ Java is capable of performing most of the assigned tasks in the same way as Python.
✔ Java utilizes classes and, like Python, is object-oriented.
✔ Same as Python, Java has many libraries built on top of it, making it easy to find code already
written for a specific purpose.

7
To find differences
But
CONTRASTING
Different from
However
On the other hand
Unlike
In contrast to
Whereas

Differences between Python and Java

✔ Python is gentle in its treatment of variables whereas Java has strict type checking.
✔ Programs and apps normally run faster in Java. But running the code in Python is simpler.
✔ Python is a dynamically typed language, which results in an easier syntax that is quite similar to the
English Language. Java, on the other hand, follows strict syntax rules, it’s a statically typed
language where you need to explicitly declare your variable types

8
Let’s watch a video!
9
Your turn!
Let’s play a game.

https://wordwall.net/play/18536/148/231

10
Which is better between Python and Java?
It is impossible to define which of them is the best.
Both these languages ​have large communities and great
support.
The bugs have been fixed almost immediately, and
languages ​are also being updated from time to time.
Java is already proving to be one of the world's best
languages. Similarly Python is growing with each
passing day.
When it comes to performance, Java defeats Python, but
if you are looking at compiling code for large projects
with thousands of lines of code, you need to go with
Python itself.
Python language has a simpler syntax, and it is better
to read and format as well. Predicting any language's
future is not simple or straightforward, However both
are doing perfectly right now.
This discussion between Java vs. Python is held in
2021. There are many different pros and cons for both
languages. You have to choose the one that goes better
for your projects’ requirements.
Say if the sentences are contrasting or comparing
11
Thank you!
Do you have any questions?
Want to read more about it?
https://hackr.io/blog/python-vs-java
https://www.youtube.com/watch?v=8gzBTe4Oq80

12

You might also like