MSIS 655 Advanced Business Applications Programming Week 1
MSIS 655 Advanced Business Applications Programming Week 1 Introduction to Java 1. 1
Introduction Object-Oriented Programming n n 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!" 2 1. 2
Java n The Java. TM programming language is designed to meet the challenges of application development in the context of heterogeneous, network-wide distributed environments. 3
Different Kinds of Java Applications Java Applets Java. Script Java. Server Pages Java Servlet technology Java. Beans 4
How Java application works 5
Object An object is a software bundle of variables and related methods. Attribute (State) and Behavior (Method) Message 6
Class 9/15/2020 2. 7
The Class Declaration 8
Class Body Constructor Declarations for the Variables Methods to implement the behavior 9
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. 10
Implementing Methods 11
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. 12
Lab Activities (Week 1) Tutorial 1 (Java Application) Tutorial 3 (JCreator LE) - Assignment 13
- Slides: 13