COMPARISON BETWEEN
PROGRAMMING LANGUAGES
JAVA PYTHON
D I F F E R E N C E S
is a compiled language is an interpreted language
is statically typed is dynamically typed
offers limited string related offers lots of string related
functions functions
has complex learning curve is easy to learn and use
offers multiple inheritances offers both single and multiple
partially done thru interfaces inheritances
uses curly braces to define the uses indentation to separate code
beginning and end each of into code blocks
function and class definition
having no semicolon at the end of does not need semicolon to end a
statement will throw an error statement
its programs run slowly compared its programs run faster than Java
to Python
DAVE FERNAN R. TIBURCIO BSCE 2-1
202101460
COMPARISON BETWEEN
PROGRAMMING LANGUAGES
JAVA PYTHON
D I F F E R E N C E S
more portable than Python since less portable because its programs
any computer or mobile device that need an interpreter installed on a
can run Java Virtual Machine can target machine to translates its
run its applications Python code
has longer lines of code has shorter lines of code (uses print
function)
takes 10 lines of code to read from a only takes 2 lines of code to read
file in Java from a file
its legacy systems are typically has less legacy problem
larger and numerous
best for Desktop GUI apps, Embed excellent for scientific and numeric
Systems, Web application services, computing, Machine learning apps,
etc. more
offers stable connectivity offers week connectivity
DAVE FERNAN R. TIBURCIO BSCE 2-1
202101460
COMPARISON BETWEEN
PROGRAMMING LANGUAGES
JAVA PYTHON
S I M I L A R I T I E S
both are popular programming both are used in Machine learning
languages and API interactions
both supports multiple paradigm both have garbage collection for
and inheritances memory management objects
both have strong cross-platform both are secure programming
and extensive standard libraries languages
both treat (nearly) everything as both have variables and methods in
objects; therefore are object- their classes
oriented
both are best language master in
both languages compile to bytecode data science
both have a C-like syntax both plays a crucial role for IOT
development
both are widely used in the client-
side and server-side Web both are well established,
applications independent, and part of a large,
supportive community
both case sensitive
DAVE FERNAN R. TIBURCIO BSCE 2-1
202101460