0% found this document useful (0 votes)
15 views7 pages

C++, Python & Java: Key Comparisons

The document compares C++, Python, and Java, highlighting their similarities and differences in terms of creation, usage, syntax, and execution. All three languages support object-oriented programming and have libraries that facilitate development, but they differ in variable declaration, code execution methods, and speed of execution. C++ is known for efficiency, Python for simplicity, and Java for versatility.

Uploaded by

parthmunde153
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views7 pages

C++, Python & Java: Key Comparisons

The document compares C++, Python, and Java, highlighting their similarities and differences in terms of creation, usage, syntax, and execution. All three languages support object-oriented programming and have libraries that facilitate development, but they differ in variable declaration, code execution methods, and speed of execution. C++ is known for efficiency, Python for simplicity, and Java for versatility.

Uploaded by

parthmunde153
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

CODING IN C+

+,PYTHON & JAVA


DIFFERENCES AND SIMILARITIES BETWEEN C++ ,
PYTHON & JAVA
(THREE DIFFERENT CODING LANGUAGES)
INTRODUCTION
C++ PYTHON JAVA
Dennis ritchie & Green teams - james
Created by bjarne stroustrup Guido van rossum gosling
Bell laboratories – Centrum wiskunde Sun microsystem -
Created at (nokia bell labs )- new &informatica - california
jersey,us netherland
1991(first launch in
Year 1979 1991
1995)
Platform
Famous for Efficiency & Simplicity and independence and
performance readability
versatility
Device drivers,kernels
of os,games,desktop Website,software,aut Web development ,
Used to develop app,database,graphic omate task,data (android)mobile
design,web analysis,AI application , video
browsers,spotify Development games etc
Similarities
C++ PYTHON JAVA

Syntax Library , functions Library and Library , functions


used ,for print functions are in used ,[Link]
statement cout built,print keyword intln function is
keyword is used used to print used to print

OOP All 3 support functions of OOP - like data abstraction – hiding


complex details of functions and libraries only show essential
words , encapsulation – wrapping multiple objects in single unit
OR adding multiple function in main function using many more
curly braces/indent space , polymorphism – same symbol can
perform different operations understanding the situation on its
own e.g. in python + is used with numbers then it add numbers
or if it used with text then it concatenate/join two words ,
Inheritance – classes have extension of sub classes to show
inheritance of code “ OOP allows to create Modular(small chunk
of big program) and reusable code”
Similarities
C++ PYTHON JAVA

Libraries & Third All three lanuages use packages having ready made classes and
party Module [Link] just add them according to their need while
designing [Link] saves time and [Link] update
this packages/libraries regulary which support developer

Widely used in OS,Games,GUI Web,game,AI Android apps,java


different fields – application for development web applications
web,software desktop,web
development,scient browser
-ific computing,data
analysis
Differences
C++ PYTHON JAVA

IDE(code editor) Turbo C++ IDLE,PyCharm,Visua Eclipse,BlueJ


l studio
Data Types(which Refer pg no. 80 chart
type of data is
allowed in coding)
Variable Declaration Declare variable No need to declare Declare variable
before using it in variable beforehand before using it in
code(strongly typed code(strongly typed
lang it is) lang it is)

Syntax Uses curly braces { } Didn’t use curly Uses curly braces { }
for statements & braces,mainly uses for statements &
indentation is round and square indentation is
advised for better braces ( ) , [ ] but it advised for better
readability is compulsory to readability
add indentation for
statements here
Differences
C++ PYTHON JAVA

File Extension – used .cpp .py .java


while saving code to run
it
Comments – non Can add single Only support single Add single and
executable,helpful for line comment line comment using multiline comments
developers to understand using // # using /* */
code before
sentence and
for multilines
uses /* */

Keywords – preseverd Refer pg no 81


words hold special
meaning for compilers
/interpreter for
translation to create
proper output
Difference
C++ PYTHON JAVA
s
Code execution – uses Uses compiler, Uses interpreter,to Uses both compiler
translator to convert high to run code run a code save it and interpreter, to
level code into machine first compile and press F5 key run it(for blueJ)
language code using Alt+F9 click right mouse
key and to run button on code use
press Ctrl+F9 compile option then
key again right click on
code choose option
that contain void
main()

Speed of Execution Fastest – use Slowest – uses Slowest than C++


compiler that interpreter to but fastest than
directly translate code in Python because
convert code machine language convert code in
in machine which work line by bytecode then it
language line translate in JVM
(java virtual
machine)

You might also like