Smart Programming: Java/Python Introduction
Smart Programming: Java/Python Introduction
Java/Python Introduction
Smart Programming (Mohali, Chandigarh India)
Call or Whats App Online & Industrial Training: +91 62838-30308
1. PROGRAMMING PARADIGM:-
-> Java : Pure OOP (Object Oriented
Programming) (from JavaSE 8 version Java
introduced some procedural oriented programming
paradigm features like Lamba Expression, functional
interface, Functions, Predicates, Module System
(java9) etc)
-> Python : Procedural Oriented and OOP
1
Smart Programming (Mohali, Chandigarh India)
Call or Whats App Online & Industrial Training: +91 62838-30308
3. COMPILATIVE OR INTERPRETIVE
LANGUAGE:-
-> Java : It is both compilative and interpretive
programming language
-> Python : It is interpretive programming
language
4. TRANSLATOR:-
-> Java : It has compiler and interpreter
-> Python : It has only interpreter
5. SPEED:-
-> Java : It is fast as compared to python
-> Python : It is slower as compared to java
2
Smart Programming (Mohali, Chandigarh India)
Call or Whats App Online & Industrial Training: +91 62838-30308
6. PORTABILITY:-
-> Java : As java supports more hardwares like
computers, mobiles, remotes, tv etc thus java is
more portable
-> Python : It is less portable as comapred to
java
7. INHERITANCE:-
-> Java : It supports except multiple inheritance
-> Python : It supports all inheritances
8. USE OF ";":-
-> Java : Its mendatory to use ; in java
-> Python : Its not mendatory to use ; in python
9. USE OF {}:-
-> Java : Its mendatory to use {} in java
3
Smart Programming (Mohali, Chandigarh India)
Call or Whats App Online & Industrial Training: +91 62838-30308
10. SYNTAX:-
-> Java : Hard Coded (if you miss any ; or {}
then it will provide an error)
-> Python : Easy Syntax (easy to remember as it
is close to humans)
13. FRAMEWORKS:-
-> Java : Java provides more frameworks for eg
Spring, Hibernate, JSF, Struts etc
-> Python : Python provides less framework as
compared to java for eg Django, Flask etc
5
Smart Programming (Mohali, Chandigarh India)
Call or Whats App Online & Industrial Training: +91 62838-30308
1. Simple :-
-> Java is using all the simplified syntax from C
& C++
-> Some C & C++ features were either removed
(pointers, multiple inheritance) from java or was
created automatic (memory management)
6
Smart Programming (Mohali, Chandigarh India)
Call or Whats App Online & Industrial Training: +91 62838-30308
2. PlatForm Independent:-
-> Java is a platform independent language
which means java can be executed on any machine
or operating system
3. Portable:-
-> Java is portable language as it can be
executed on multiple hardwares
7
Smart Programming (Mohali, Chandigarh India)
Call or Whats App Online & Industrial Training: +91 62838-30308
5. Security:-
-> Java is very secured language because
1. Java does not have pointers
2. Java has byte code verifier
3. Java has a security manager that defines
the access for java classes
6. Robust:-
-> Java is Robust i.e. powerful language
because
1. Java provides a lot of classes and
interfaces to handle the exceptions
2. Automatic Memory Management
7. Multithreaded Language:-
-> Java supports multithreading
8
Smart Programming (Mohali, Chandigarh India)
Call or Whats App Online & Industrial Training: +91 62838-30308
8. High Performance:-
-> Java has high performance because :-
1. Robust
2. Portable
3. Multithreaded Language
etc
9. Distributed Applications:-
-> Java can be used for distributed application
(enterprise applications)
9
Smart Programming (Mohali, Chandigarh India)
Call or Whats App Online & Industrial Training: +91 62838-30308
Interview Questions:-
10
Smart Programming (Mohali, Chandigarh India)
Call or Whats App Online & Industrial Training: +91 62838-30308
Websites: https://www.smartprogramming.in/
https://courses.smartprogramming.in
Android App:
https://play.google.com/store/apps/details?id=com.sma
rtprogramming
YouTube Channel:
https://www.youtube.com/c/SmartProgramming
11