Introduction to Java Programming: Concepts, Characteristics, and Applications, Lecture notes of Java Programming

here you will find why we are learning java.

Typology: Lecture notes

2018/2019

Uploaded on 04/19/2019

fariah-malik
fariah-malik 🇵🇰

4

(1)

1 document

1 / 34

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Chapter 1 Introduction to
Java
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22

Partial preview of the text

Download Introduction to Java Programming: Concepts, Characteristics, and Applications and more Lecture notes Java Programming in PDF only on Docsity!

Chapter 1 Introduction to

Java

Why Java?

The answer is that Java enables users to develop and deploy

applications on the Internet for servers, desktop computers, and

small hand-held devices. The future of computing is being

profoundly influenced by the Internet, and Java promises to

remain a big part of that future. Java is the Internet programming

language.

Java is a general purpose programming language.

Java is the Internet programming language.

Java’s History

 (^) James Gosling and Sun Microsystems  (^) Oak  (^) Java, May 20, 1995, Sun World  (^) HotJava  (^) The first Java-enabled Web browser  (^) Early History Website:

http://java.sun.com/features/1998/05/birthday.html

Characteristics of Java

Java Is Simple

Java Is Object-Oriented

Java Is Distributed

Java Is Interpreted

Java Is Robust

Java Is Secure

Java Is Architecture-Neutral

Java Is Portable

Java's Performance

Java Is Multithreaded

Java Is Dynamic

Optional

Characteristics of Java

 (^) Java Is Simple  (^) Java Is Object-Oriented  (^) Java Is Distributed  (^) Java Is Interpreted  (^) Java Is Robust  (^) Java Is Secure  (^) Java Is Architecture- Neutral  (^) Java Is Portable  (^) Java's Performance  (^) Java Is Multithreaded  (^) Java Is Dynamic

Java is inherently object-oriented. Although many object-oriented languages began strictly as procedural languages, Java was designed from the start to be object-oriented. Object-oriented programming (OOP) is a popular programming approach that is replacing traditional procedural programming techniques. One of the central issues in software development is how to reuse code. Object-oriented programming provides great flexibility, modularity, clarity, and reusability through encapsulation, inheritance, and polymorphism. Optional

Characteristics of Java

 (^) Java Is Simple  (^) Java Is Object-Oriented  (^) Java Is Distributed  (^) Java Is Interpreted  (^) Java Is Robust  (^) Java Is Secure  (^) Java Is Architecture- Neutral  (^) Java Is Portable  (^) Java's Performance  (^) Java Is Multithreaded  (^) Java Is Dynamic

Distributed computing involves several computers working together on a network. Java is designed to make distributed computing (e.g. Web Services ) easy. Since networking capability is inherently integrated into Java, writing network programs is like sending and receiving data to and from a file. Optional

Characteristics of Java

 (^) Java Is Simple  (^) Java Is Object-Oriented  (^) Java Is Distributed  (^) Java Is Interpreted  (^) Java Is Robust  (^) Java Is Secure  (^) Java Is Architecture- Neutral  (^) Java Is Portable  (^) Java's Performance  (^) Java Is Multithreaded  (^) Java Is Dynamic

Java compilers can detect many 0

problems that would first show up at execution time in other languages. Java has eliminated certain types of error-prone programming constructs found in other languages. Java has a runtime exception- handling feature to provide programming support for robustness. Optional

Characteristics of Java

 (^) Java Is Simple  (^) Java Is Object-Oriented  (^) Java Is Distributed  (^) Java Is Interpreted  (^) Java Is Robust  (^) Java Is Secure  (^) Java Is Architecture- Neutral  (^) Java Is Portable  (^) Java's Performance  (^) Java Is Multithreaded  (^) Java Is Dynamic

Java implements several security mechanisms to protect your system against harm caused by stray programs. Optional

Characteristics of Java

 (^) Java Is Simple  (^) Java Is Object-Oriented  (^) Java Is Distributed  (^) Java Is Interpreted  (^) Java Is Robust  (^) Java Is Secure  (^) Java Is Architecture- Neutral  (^) Java Is Portable  (^) Java's Performance  (^) Java Is Multithreaded  (^) Java Is Dynamic

Because Java is architecture neutral, Java programs are portable. They can be run on any platform without being recompiled. Optional

Characteristics of Java

 (^) Java Is Simple  (^) Java Is Object-Oriented  (^) Java Is Distributed  (^) Java Is Interpreted  (^) Java Is Robust  (^) Java Is Secure  (^) Java Is Architecture- Neutral  (^) Java Is Portable  (^) Java's Performance  (^) Java Is Multithreaded  (^) Java Is Dynamic

Because Java is architecture neutral, Java programs are portable (moveable). They can be run on any platform without being recompiled. Optional

Characteristics of Java

 (^) Java Is Simple  (^) Java Is Object-Oriented  (^) Java Is Distributed  (^) Java Is Interpreted  (^) Java Is Robust  (^) Java Is Secure  (^) Java Is Architecture- Neutral  (^) Java Is Portable  (^) Java's Performance  (^) Java Is Multithreaded  (^) Java Is Dynamic

Java was designed to adapt to an evolving environment. New code can be loaded on the fly without recompilation. There is no need for developers to create, and for users to install, major new software versions. New features can be incorporated transparently as needed. Optional

JDK Versions

JDK 1.02 (1995)

JDK 1.1 (1996)

JDK 1.2 (1998)

JDK 1.3 (2000)

JDK 1.4 (2002)

JDK 1.5 (2004) a. k. a. JDK 5 or Java 5

Java IDE Tools

Borland JBuilder

NetBeans Open Source by Sun

Sun ONE Studio by Sun MicroSystems

Eclipse Open Source by IBM

A Simple Java Program

//This program prints Welcome to Java!

public class Welcome {

public static void main(String[] args) {

System.out.println("Welcome to

Java!");

> javac Welcome.java

> java Welcome