SlideShare a Scribd company logo
JAVA
V/S
PYTHON
Photo by Joanna Kosinska on Unsplash
JAVA
Java is a general-purpose programming
language that is class-based, object-oriented,
and designed to have as few implementation
dependencies. It is intended to let application
developers write once, run anywhere (WORA),
PYTHON
Python is an interpreted, high-level, general-
purpose programming language. Its language
constructs and object-oriented approach aim to
help programmers write clear, logical code for
small and large-scale projects.
V/S
COMPARISON
FACTORS
SPEED
LEGACY
PRACTICAL AGILITY
BASIC SYNTAX DIFFERENCE
APPLICATION
SPEED
Python is an interpreted language and
it determines the type of data at run
time which makes it slower
comparatively.
In terms of speed, Java is faster than
Python as it is a compiled language. It
takes less time to execute a code.
Image Source:https://www.edureka.co/blog/java-vs-python/
LEGACY
Python has less legacy problem so
organization finds difficulty for the
script to copy and paste codes and
gives it a slight edge over the other
languages.
Java’s history in the enterprise and its
slightly more verbose coding style mean
that Java legacy systems are typically
larger and more numerous than python’s.
Image Source:https://www.edureka.co/blog/java-vs-python/
PRACTICAL AGILITY
Python has always had an existence in
the talent space and is considered to
be the most favorable language for
Machine Learning, Artificial
Intelligence, IoT and a lot more.
Java enjoys more undeviating refactoring
support than python thanks to its static
type system and universality of IDE’s in
development. It is more popular for
mobile and web applications.
Image Source:https://www.edureka.co/blog/java-vs-python/
SYNTAX DIFFERENCE
JAVA PROGRAM
import java.io.*;
public class HelloWorld {
public static void main(String[] args)
throws IOException{
System.out.println("Hello, World");
}
}
PYTHON PROGRAM
print ('Hello, World!')
SYNTAX DIFFERENCE
JAVA PROGRAM
class Student {
String name;
Student(String n){
name=n;
}
void show(){ System.out.println(“Hello
”+name); }
public static void main(String[] args)
{
Student object = new
Student(“Rutuja”);
}
}
PYTHON PROGRAM
class Student:
def __init__(self, name):
self.name = name
def show(self):
print("Hello", self.name)
student = new Student("Rutuja")
student.show()
SYNTAX DIFFERENCE
JAVA PROGRAM
class Greater {
public static void main (String args[])
{
int a = 10;
int b = 20;
if (a>b) {
System.out.println("a is greater
than b");
}
else {
System.out.println("a is not
greater than b");
}
}
}
PYTHON PROGRAM
a=200
b=300
if b > a:
print("b is greater than a")
elif a==b:
print("a and b are equal")
else:
print("a is greater than b")
APPLICATIONS OF JAVA
AND PYTHON
FRAMEWORKS
Image Source: common.wikimedia.org
Image Source: www.edureka.co Image Source: www.edureka.co
Image Source: www.edureka.co
GAME DEVELOPMENT
Image Source:panda3d.org
Image Source:FAVPNG.com
Image Source:pygame.org
Image Source:github.io

More Related Content

What's hot

Understanding java streams
Understanding java streamsUnderstanding java streams
Understanding java streamsShahjahan Samoon
 
Python final presentation kirti ppt1
Python final presentation kirti ppt1Python final presentation kirti ppt1
Python final presentation kirti ppt1
Kirti Verma
 
Installing Python 2.7 in Windows
Installing Python 2.7 in WindowsInstalling Python 2.7 in Windows
Installing Python 2.7 in Windows
Siva Arunachalam
 
Intro to Python
Intro to PythonIntro to Python
Intro to Python
primeteacher32
 
Python/Django Training
Python/Django TrainingPython/Django Training
Python/Django Training
University of Technology
 
Variables & Data Types In Python | Edureka
Variables & Data Types In Python | EdurekaVariables & Data Types In Python | Edureka
Variables & Data Types In Python | Edureka
Edureka!
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
eShikshak
 
Introduction about Python by JanBask Training
Introduction about Python by JanBask TrainingIntroduction about Python by JanBask Training
Introduction about Python by JanBask Training
JanBask Training
 
Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...
Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...
Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...
Edureka!
 
Introduction to python programming
Introduction to python programmingIntroduction to python programming
Introduction to python programming
Srinivas Narasegouda
 
Python 3 Programming Language
Python 3 Programming LanguagePython 3 Programming Language
Python 3 Programming Language
Tahani Al-Manie
 
Functions and modules in python
Functions and modules in pythonFunctions and modules in python
Functions and modules in python
Karin Lagesen
 
Java Presentation
Java PresentationJava Presentation
Java Presentation
Amr Salah
 
Beginning Python Programming
Beginning Python ProgrammingBeginning Python Programming
Beginning Python Programming
St. Petersburg College
 
Fundamentals of Python Programming
Fundamentals of Python ProgrammingFundamentals of Python Programming
Fundamentals of Python Programming
Kamal Acharya
 
Python Basics
Python BasicsPython Basics
Python Basics
primeteacher32
 
Programming
ProgrammingProgramming
Programming
monishagoyal4
 
Python basic
Python basicPython basic
Python basic
radhikaadroja
 
Python games
Python gamesPython games
Python games
molw
 

What's hot (20)

Understanding java streams
Understanding java streamsUnderstanding java streams
Understanding java streams
 
Python final presentation kirti ppt1
Python final presentation kirti ppt1Python final presentation kirti ppt1
Python final presentation kirti ppt1
 
Installing Python 2.7 in Windows
Installing Python 2.7 in WindowsInstalling Python 2.7 in Windows
Installing Python 2.7 in Windows
 
Intro to Python
Intro to PythonIntro to Python
Intro to Python
 
Python/Django Training
Python/Django TrainingPython/Django Training
Python/Django Training
 
Variables & Data Types In Python | Edureka
Variables & Data Types In Python | EdurekaVariables & Data Types In Python | Edureka
Variables & Data Types In Python | Edureka
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Introduction about Python by JanBask Training
Introduction about Python by JanBask TrainingIntroduction about Python by JanBask Training
Introduction about Python by JanBask Training
 
Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...
Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...
Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...
 
Introduction to python programming
Introduction to python programmingIntroduction to python programming
Introduction to python programming
 
Python 3 Programming Language
Python 3 Programming LanguagePython 3 Programming Language
Python 3 Programming Language
 
Functions and modules in python
Functions and modules in pythonFunctions and modules in python
Functions and modules in python
 
Java Presentation
Java PresentationJava Presentation
Java Presentation
 
Beginning Python Programming
Beginning Python ProgrammingBeginning Python Programming
Beginning Python Programming
 
Fundamentals of Python Programming
Fundamentals of Python ProgrammingFundamentals of Python Programming
Fundamentals of Python Programming
 
Python Basics
Python BasicsPython Basics
Python Basics
 
Programming
ProgrammingProgramming
Programming
 
Python - the basics
Python - the basicsPython - the basics
Python - the basics
 
Python basic
Python basicPython basic
Python basic
 
Python games
Python gamesPython games
Python games
 

Similar to Java vs python

Java vs Python: Comparison, Features & Applications
Java vs Python: Comparison, Features & ApplicationsJava vs Python: Comparison, Features & Applications
Java vs Python: Comparison, Features & Applications
WeblineIndia
 
python.pptx
python.pptxpython.pptx
python.pptx
RRamyaDevi
 
Python VS Java___________________________
Python VS Java___________________________Python VS Java___________________________
Python VS Java___________________________
Mars Devs
 
A CASE STUDY JAVA IS SECURE PROGRAMMING LANGUAGE
A CASE STUDY  JAVA IS SECURE PROGRAMMING LANGUAGEA CASE STUDY  JAVA IS SECURE PROGRAMMING LANGUAGE
A CASE STUDY JAVA IS SECURE PROGRAMMING LANGUAGE
Nathan Mathis
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
shwanjava
 
Which is better, Java or Python? And how?
Which is better, Java or Python? And how?Which is better, Java or Python? And how?
Which is better, Java or Python? And how?
narendrachinnu
 
Training report
Training reportTraining report
Training report
Bhaskar Mangal
 
Overview of Java
Overview of JavaOverview of Java
Overview of Java
josemachoco
 
Java - OOPS and Java Basics
Java - OOPS and Java BasicsJava - OOPS and Java Basics
Java - OOPS and Java Basics
Victer Paul
 
MOBILE APP DEVELOPMENT USING PYTHON
MOBILE APP DEVELOPMENT USING PYTHONMOBILE APP DEVELOPMENT USING PYTHON
MOBILE APP DEVELOPMENT USING PYTHON
PriyadharshiniVS
 
Vikeshp
VikeshpVikeshp
Vikeshp
MdAsu1
 
CSE215_Module_01_Introduction.ppt
CSE215_Module_01_Introduction.pptCSE215_Module_01_Introduction.ppt
CSE215_Module_01_Introduction.ppt
RashedurRahman18
 
Java vs. Python: A Programming Language Comparison for 2022
Java vs. Python: A Programming Language Comparison for 2022Java vs. Python: A Programming Language Comparison for 2022
Java vs. Python: A Programming Language Comparison for 2022
BoTree Technologies
 
What is Java Coding?
What is Java Coding?What is Java Coding?
What is Java Coding?
JAMESJOHN130
 
Java Programming
Java ProgrammingJava Programming
Java Programming
Prof. Dr. K. Adisesha
 
Code Clash Python vs Java — Which Language Wins.pdf
Code Clash Python vs Java — Which Language Wins.pdfCode Clash Python vs Java — Which Language Wins.pdf
Code Clash Python vs Java — Which Language Wins.pdf
SudhanshiBakre1
 
Lecture_01.pdf
Lecture_01.pdfLecture_01.pdf
Lecture_01.pdf
ExaudMwakitega1
 
String class
String classString class
String class
TharuniDiddekunta
 
Introduction to Java Programming.pdf
Introduction to Java Programming.pdfIntroduction to Java Programming.pdf
Introduction to Java Programming.pdf
AdiseshaK
 
Java Intro
Java IntroJava Intro
Java Intro
Nazmul Hasan Rupok
 

Similar to Java vs python (20)

Java vs Python: Comparison, Features & Applications
Java vs Python: Comparison, Features & ApplicationsJava vs Python: Comparison, Features & Applications
Java vs Python: Comparison, Features & Applications
 
python.pptx
python.pptxpython.pptx
python.pptx
 
Python VS Java___________________________
Python VS Java___________________________Python VS Java___________________________
Python VS Java___________________________
 
A CASE STUDY JAVA IS SECURE PROGRAMMING LANGUAGE
A CASE STUDY  JAVA IS SECURE PROGRAMMING LANGUAGEA CASE STUDY  JAVA IS SECURE PROGRAMMING LANGUAGE
A CASE STUDY JAVA IS SECURE PROGRAMMING LANGUAGE
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
Which is better, Java or Python? And how?
Which is better, Java or Python? And how?Which is better, Java or Python? And how?
Which is better, Java or Python? And how?
 
Training report
Training reportTraining report
Training report
 
Overview of Java
Overview of JavaOverview of Java
Overview of Java
 
Java - OOPS and Java Basics
Java - OOPS and Java BasicsJava - OOPS and Java Basics
Java - OOPS and Java Basics
 
MOBILE APP DEVELOPMENT USING PYTHON
MOBILE APP DEVELOPMENT USING PYTHONMOBILE APP DEVELOPMENT USING PYTHON
MOBILE APP DEVELOPMENT USING PYTHON
 
Vikeshp
VikeshpVikeshp
Vikeshp
 
CSE215_Module_01_Introduction.ppt
CSE215_Module_01_Introduction.pptCSE215_Module_01_Introduction.ppt
CSE215_Module_01_Introduction.ppt
 
Java vs. Python: A Programming Language Comparison for 2022
Java vs. Python: A Programming Language Comparison for 2022Java vs. Python: A Programming Language Comparison for 2022
Java vs. Python: A Programming Language Comparison for 2022
 
What is Java Coding?
What is Java Coding?What is Java Coding?
What is Java Coding?
 
Java Programming
Java ProgrammingJava Programming
Java Programming
 
Code Clash Python vs Java — Which Language Wins.pdf
Code Clash Python vs Java — Which Language Wins.pdfCode Clash Python vs Java — Which Language Wins.pdf
Code Clash Python vs Java — Which Language Wins.pdf
 
Lecture_01.pdf
Lecture_01.pdfLecture_01.pdf
Lecture_01.pdf
 
String class
String classString class
String class
 
Introduction to Java Programming.pdf
Introduction to Java Programming.pdfIntroduction to Java Programming.pdf
Introduction to Java Programming.pdf
 
Java Intro
Java IntroJava Intro
Java Intro
 

Recently uploaded

Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
CatarinaPereira64715
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
Abida Shariff
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Product School
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 

Recently uploaded (20)

Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 

Java vs python

  • 1. JAVA V/S PYTHON Photo by Joanna Kosinska on Unsplash
  • 2. JAVA Java is a general-purpose programming language that is class-based, object-oriented, and designed to have as few implementation dependencies. It is intended to let application developers write once, run anywhere (WORA), PYTHON Python is an interpreted, high-level, general- purpose programming language. Its language constructs and object-oriented approach aim to help programmers write clear, logical code for small and large-scale projects. V/S
  • 4. SPEED Python is an interpreted language and it determines the type of data at run time which makes it slower comparatively. In terms of speed, Java is faster than Python as it is a compiled language. It takes less time to execute a code. Image Source:https://www.edureka.co/blog/java-vs-python/
  • 5. LEGACY Python has less legacy problem so organization finds difficulty for the script to copy and paste codes and gives it a slight edge over the other languages. Java’s history in the enterprise and its slightly more verbose coding style mean that Java legacy systems are typically larger and more numerous than python’s. Image Source:https://www.edureka.co/blog/java-vs-python/
  • 6. PRACTICAL AGILITY Python has always had an existence in the talent space and is considered to be the most favorable language for Machine Learning, Artificial Intelligence, IoT and a lot more. Java enjoys more undeviating refactoring support than python thanks to its static type system and universality of IDE’s in development. It is more popular for mobile and web applications. Image Source:https://www.edureka.co/blog/java-vs-python/
  • 7. SYNTAX DIFFERENCE JAVA PROGRAM import java.io.*; public class HelloWorld { public static void main(String[] args) throws IOException{ System.out.println("Hello, World"); } } PYTHON PROGRAM print ('Hello, World!')
  • 8. SYNTAX DIFFERENCE JAVA PROGRAM class Student { String name; Student(String n){ name=n; } void show(){ System.out.println(“Hello ”+name); } public static void main(String[] args) { Student object = new Student(“Rutuja”); } } PYTHON PROGRAM class Student: def __init__(self, name): self.name = name def show(self): print("Hello", self.name) student = new Student("Rutuja") student.show()
  • 9. SYNTAX DIFFERENCE JAVA PROGRAM class Greater { public static void main (String args[]) { int a = 10; int b = 20; if (a>b) { System.out.println("a is greater than b"); } else { System.out.println("a is not greater than b"); } } } PYTHON PROGRAM a=200 b=300 if b > a: print("b is greater than a") elif a==b: print("a and b are equal") else: print("a is greater than b")
  • 11. FRAMEWORKS Image Source: common.wikimedia.org Image Source: www.edureka.co Image Source: www.edureka.co Image Source: www.edureka.co
  • 12. GAME DEVELOPMENT Image Source:panda3d.org Image Source:FAVPNG.com Image Source:pygame.org Image Source:github.io