Java 1.1
Java 1.1
Stimulati
ng
question; General
Alpha Evocation
Summary 5 objective;
Recap2 ; 2
Breathing;
;2
;3
Mindmap 1
;5
Specific
Discussion Objective
;5 (1,2); 15
Formative
Assessme Formative
Specific
nt; 5 Assessme
Objective
nt; 5
(3); 10
Java Programming
Specific Objective
1. Identify the needs of object oriented programming. [T]
2. Exemplify the concepts of buzz words of java programming.
[T]
3. Compare procedural approach and object oriented
approach. [T]
CONTENTS
•Java’s Lineage
•The Birth of Modern Programming: C
•The Need for C++
•The Stage Is Set for Java
•Why Java Is Important to the Internet
•Java Applets and Applications
•Security
•Portability
•Java’s Magic: The Bytecode
•The Java Buzzwords
•Simple
•Object-Oriented
•Robust
•Multithreaded
•Architecture-Neutral
•Interpreted and High Performance
•Distributed
•Dynamic
Java’s family
o Java is related to C++, which is a direct descendent of C.
o From C, Java derives its syntax.
o Many of Java’s object-oriented features were influenced by C++.
James Gosling
Need for C++
o The first widespread language was, of course, FORTRAN.
o The 1960s gave birth to structured programming.
o This is the method of programming championed by languages such as C.
o Once a project reaches a certain size, its complexity exceeds what a programmer can
manage.
o To solve this problem, a new way to program was invented, called object-oriented
programming (OOP).
o OOP is a programming methodology that helps organize complex programs through
the use of inheritance, encapsulation, and polymorphism.
oC++ allows this barrier to be broken, and helps the programmer comprehend and
manage larger programs.
oWithin a few years, the World Wide Web and the Internet reached critical mass.
Creation of Java
o Java was conceived by James Gosling, Patrick Naughton, Chris Warth,
Ed Frank, and Mike Sheridan at Sun Microsystems, Inc. in 1991.
o It took 18 months to develop the first working version.
o This language was initially called “Oak” but was renamed “Java” in
1995.
o Java was not the Internet! Instead, the primary motivation was the
need for a platform-independent
Brief History of Java
o In 1990, Sun Microsystems began an internal project known as the Green Project
to work on a new technology.
o In 1992, the Green Project was roll off and its interest directed toward building
highly interactive devices for the cable TV industry. This failed to materialize.
o In 1994, a small web browser called HotJava was written. Oak was renamed to Java
after learning that Oak had already been trademarked.
o In 1995, Java was first publicly released.
o In 1996, Java Development Kit (JDK) 1.0 was released.
o In 2002, JDK 1.4 (codename Merlin) was released, the most widely used version.
o In 2004, JDK 5.0 (codename Tiger) was released, the latest version.
James Gosling
• James Gosling is generally credited as the inventor of the Java programming
language
• He was the first designer of Java and implemented its original compiler and
virtual machine
• He is currently the Chief Technical Officer of Sun Microsystems
What is Java?
• A multi-platform, network-centric, object-oriented programming language
• Multi-platform
• It can run on almost any computer platform
• Network-centric
• Designed with network in mind – “the network is the computer”
• Designed for building applications for the Internet
• Object-oriented
• It incorporates object-oriented programming model
Java Platform Editions
• A Java Platform is the set of APIs, class libraries, and other programs used in
developing Java programs for specific applications
the Java run-time system, which is called the Java Virtual Machine (JVM).
• That is, in its standard form, the JVM is an interpreter for bytecode.
• Translating a Java program into byte code helps makes it much easier to run
Distributed
• Java provides high-level support for Networking
• Java applications can open and access objects across the net via URLs
• Java RMI API allows to invoke methods of remote java objects
• Java provides traditional low level networking support, including data grams
and stream-based connection through sockets.
Secure
• Java provides many digital signatures, encrypted algorithms like
- DSA(Digital Signature Algorithm) - RSA
Architecture-Neutral
• Java Compiler generates architecture neutral file format, so the compiled code is
executable on many platforms.
Portable
• In Java binary data is stored in Fixed format .
• Strings are stored in Standard Unicode format
Dynamic
• Java programs carry with them substantial amounts of run-time type information
that is used to verify and resolve accesses to objects at run time.
Multi Threaded
• Java is multi threaded language, it provides support for multiple threads of
execution that can handle different tasks
Robust
• The multiplatform environment of the Web places extraordinary demands on a
program, because the program must execute reliably in a variety of systems.