13
MSIS 655 Advanced Business Applications Programming Week 1 Introduction to Java 1. 1.1

MSIS 655 Advanced Business Applications Programming Week 1 Introduction to Java 1.11.1

Embed Size (px)

Citation preview

Page 1: MSIS 655 Advanced Business Applications Programming Week 1 Introduction to Java 1.11.1

MSIS 655Advanced Business Applications

Programming

Week 1Introduction to Java

1.1.111.1.11

Page 2: MSIS 655 Advanced Business Applications Programming Week 1 Introduction to Java 1.11.1

IntroductionObject-Oriented Programming

OOP is more than learning a new language; it requires a new way of thinking. We must no longer think in terms of data structures - we must think in terms of objects.

Many languages claim to have "Support for Object Technologies!"

1.1.221.1.22

Page 3: MSIS 655 Advanced Business Applications Programming Week 1 Introduction to Java 1.11.1

1.1.33

Java

The JavaTM programming language is designed to meet the challenges of application development in the context of heterogeneous, network-wide distributed environments.

Page 4: MSIS 655 Advanced Business Applications Programming Week 1 Introduction to Java 1.11.1

1.1.44

Different Kinds of Java

Java Applications

Java Applets

JavaScript

JavaServer Pages

Java Servlet technology

JavaBeans

Page 5: MSIS 655 Advanced Business Applications Programming Week 1 Introduction to Java 1.11.1

1.1.55

How Java application works

Page 6: MSIS 655 Advanced Business Applications Programming Week 1 Introduction to Java 1.11.1

1.1.66

Object

An object is a software bundle of variables and related methods.

Attribute (State) and Behavior (Method)

Message

Page 7: MSIS 655 Advanced Business Applications Programming Week 1 Introduction to Java 1.11.1

Class

2.2.7706/05/2002

Page 8: MSIS 655 Advanced Business Applications Programming Week 1 Introduction to Java 1.11.1

1.1.88

The Class Declaration

Page 9: MSIS 655 Advanced Business Applications Programming Week 1 Introduction to Java 1.11.1

1.1.99

Class Body

Constructor

Declarations for the Variables

Methods to implement the behavior

Page 10: MSIS 655 Advanced Business Applications Programming Week 1 Introduction to Java 1.11.1

1.1.1010

Declaring Member Variables A class's state is represented by its member variables.

You declare a class's member variables in the body of the class.

Page 11: MSIS 655 Advanced Business Applications Programming Week 1 Introduction to Java 1.11.1

1.1.1111

Implementing Methods

Page 12: MSIS 655 Advanced Business Applications Programming Week 1 Introduction to Java 1.11.1

1.1.1212

Understanding Instance and Class Members

By default, unless otherwise specified, a member declared within a class is an instance member.

To specify that a member variable is a class variable, use the static keyword.

Page 13: MSIS 655 Advanced Business Applications Programming Week 1 Introduction to Java 1.11.1

1.1.1313

Lab Activities (Week 1)

Tutorial 1 (Java Application)

Tutorial 3 (JCreator LE) - Assignment