IFS410 Advanced Analysis and Design Week 1 Introduction to Java: Applications
Introduction Object-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.3 Java The Java TM programming language is designed to meet the challenges of application development in the context of heterogeneous, network-wide distributed environments.
1.4 Different Kinds of Java Java Applications Java Applets Java Script Java Server Pages Java Servlet technology Java Beans
1.5 How Java application works
1.6 Object An object is a software bundle of variables and related methods. Attribute (State) and Behavior (Method) Message
Class /05/2002
1.8 The Class Declaration
1.9 Class Body Constructor Declarations for the Variables Methods to implement the behavior
1.10 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.
1.11 Implementing Methods
1.12 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.
1.13 JApplet Class JApplet is a subclass of java.awt.Applet javax.swing.JApplet JApplet -- a class that enables applets to use Swing components init(), start(), paint(), (stop(), destroy()) Details in Chapter 20
1.14 Lab activities (Week 1) Tutorial 1 (JCreator) –Assignment 1