Vous êtes sur la page 1sur 24

JAVA

Introduction to JAVA Programming


Brief History of JAVA
• James Gosling, Mike Sheridan, and Patrick
Naughton initiated the Java language
project in June 1991. The small team of sun
engineers called Green Team.
• Java was originally designed for interactive
television, but it was too advanced for the
digital cable television industry at the time.
• The language was initially called Oak after
an oak tree that stood outside Gosling's
office. Later the project went by the name
“Green/ Greentalk” , and file extension
was .gt and was finally renamed Java, from
Java coffee.
Why Java named "Oak"?

• Why Oak? Oak is a symbol of


strength and chosen as a national
tree of many countries like U.S.A.,
France, Germany, Romania, etc.
• In 1995, Oak was renamed as
"Java" because it was already a
trademark by Oak Technologies.
Why Java Programming named "Java"?

• Java was originally developed by James Gosling at


Sun Microsystems (which has since been acquired
by Oracle) and released in 1995 as a core
component of Sun Microsystems' Java platform.
• Gosling and his team did a brainstorm session and
after the session, they came up with several names
such as Dynamic, Revolutionary, DNA, SILK,
JOLT, etc.
• Java name was decided after much discussion
since it was so unique. The name Java originates
from a sort of espresso bean, Java. Gosling came
up with this name while having a coffee near his
office.

• Java is an island of Indonesia where first coffee was


produced (called java coffee). Notice that Java is
just a name, not an acronym.
What is JAVA?
• Java is a general-purpose programming language that is class-based, object-
oriented (although not a pure OO language, as it contains primitive types),
and designed to have as few implementation dependencies as possible.
• It is intended to let application developers write once, run anywhere
(WORA), meaning that compiled Java code can run on all platforms that
support Java without the need for recompilation.

• Java applications are typically compiled to bytecode that can run on any
Java virtual machine (JVM) regardless of the underlying computer
architecture.
Features of JAVA

• The primary objective of Java


programming language
creation was to make it
portable, simple and secure
programming language. Apart
from this, there are also some
excellent features which play
an important role in the
popularity of this language. The
features of Java are also known
as java buzzwords.
Java is Used for?

• Mobile applications (specially Android apps)


• Desktop applications
• Web applications
• Web servers and application servers
• Games
• Database connection
• And much, much more!
• Currently, Java is used in internet programming, mobile devices, games, e-
business solutions, etc.
Why use JAVA?
• Java works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc.)
• It is one of the most popular programming language in the world
• It is easy to learn and simple to use
• It is open-source and free
• It is secure, fast and powerful
• It has a huge community support (tens of millions of developers)
JAVA Version History
JAVA Versions Release Date
1. DK Alpha and Beta 1995
2. JDK 1.0 23rd Jan 1996
3. JDK 1.1 19th Feb 1997
4. J2SE 1.2 8th Dec 1998
5. J2SE 1.3 8th May 2000
6. J2SE 1.4 6th Feb 2002
7. J2SE 5.0 30th Sep 2004
8. Java SE 6 11th Dec 2006
9. Java SE 7 28th July 2011
10. Java SE 8 18th March 2014
11. Java SE 9 21st Sep 2017
12. Java SE 10 20th March 2018
Syntax of JAVA

• The syntax of Java is similar to C and C++, but it has fewer low-level facilities
than either of them.
Anatomy of a JAVA Program
Java File Name
Java Extension Name
Class Header
Class Starts Method Header
Main Method Starts
Java Statements
Main Method Ends
ClassEnds

Note:
1. A class should always start with an uppercase first letter.
2. Java is case-sensitive: "MyClass" and "myclass" has different meaning.
3. The name of the java file must match the class name. When saving the file, save it
using the class name and add ".java" to the end of the filename.
Access Modifiers Class Name
No return Value Arguments to
the method.
This method
must be given
an array of
Name of the Method String, and the
array will be
called args.

Every Statement must


end in a semicolon.

Class − A class can be defined as a template/blueprint that describes the


behavior/state that the object of its type supports.
Methods − A method is basically a behavior. A class can contain many
methods. It is in methods where the logics are written, data is manipulated and
all the actions are executed.
What Will You Need to program in
JAVA?
• Install JAVA JDK
• Text Editors / Code Editors - is program that allows you to open, view, and
edit plain text files.
• Integrated Development Environment (IDE) – is a programming
environment which supports one or a set o programming languages that
one can use in creating applications. It usually consists of a compiler,
debugger, GUI Maker, and code editor (Text Editor).
Text Editors

Notepad Notepad ++ Textmate (MAC)

Textedit (MAC) Sublime Text Visual Studio Code


JAVA IDE

Eclipse Netbeans IntelliJ


PYTHON
Introduction to Python Programming
Brief History of Python

• The programming language Python was conceived in the late 1980s,


and its implementation was started in December 1989 by Guido van
Rossum at Centrum Wiskunde & Informatica (CWI) in the
Netherlands as a successor to ABC Language capable of exception
handling and interfacing with the Amoeba operating system.
• Fun fact. Python is not named after the snake. It’s named after the British
TV show Monty Python.
What is Python?
• Python is an interpreted, high-level, general-purpose programming
language.

• Features of Python:
1. Easy to Learn
2. Easy to Read
3. Easy to Maintain
4. Portable
5. GUI Programming
Python is used for? What Python can do?
• web development (server-side), • Python can be used on a server to
create web applications.
• software development,
• mathematics, • Python can be used alongside
software to create workflows.
• system scripting. • Python can connect to database
systems. It can also read and modify
files.
• Python can be used to handle big
data and perform complex
mathematics.
• Python can be used for rapid
prototyping, or for production-ready
software development.
Why Used Python?

• Python works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc).
• Python has a simple syntax similar to the English language.
• Python has syntax that allows developers to write programs with fewer lines
than some other programming languages.
• Python runs on an interpreter system, meaning that code can be executed as
soon as it is written. This means that prototyping can be very quick.
• Python can be treated in a procedural way, an object-orientated way or a
functional way.
Python Versions
• Python programming language is being updated regularly with new features
and supports. There are lots of updates in python versions, started from
1994 to current release.
• A list of python versions with its released date is given below.
Python Version Release Date Python Version Release Date Python Version Release Date
Python 1.0 January 1994 Python 2.4 November 30, 2004 Python 3.3 September 29, 2012
Python 1.5 December 31, 1997 Python 2.5 September 19, 2006 Python 3.4 March 16, 2014
Python 1.6 September 5, 2000 Python 2.6 October 1, 2008 Python 3.5 September 13, 2015
Python 2.0 October 16, 2000 Python 2.7 July 3, 2010 Python 3.6 December 23, 2016
Python 2.1 April 17, 2001 Python 3.0 December 3, 2008 Python 3.7 June 27, 2018
Python 2.2 December 21, 2001 Python 3.1 June 27, 2009
Python 2.3 July 29, 2003 Python 3.2 February 20, 2011
Syntax of Python
Python IDE

Pycharm PyDev Spyder

Vous aimerez peut-être aussi