130 likes | 267 Vues
This week's introduction covers the fundamentals of Java and Object-Oriented Programming (OOP). OOP requires a shift in mindset, moving from data structures to a focus on objects—entities that bundle variables and methods. We explore the Java programming language, its applications, applets, and server-based technologies. Key concepts include class declarations, object states (attributes), and behaviors (methods). Activities involve tutorials on Java applications and using JCreator. Get started with OOP and learn how Java addresses distributed application development challenges.
E N D
MSIS 655Advanced Business Applications Programming Week 1 Introduction to Java 1.1
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.2
Java • The JavaTM programming language is designed to meet the challenges of application development in the context of heterogeneous, network-wide distributed environments.
Different Kinds of Java • Java Applications • Java Applets • JavaScript • JavaServer Pages • Java Servlet technology • JavaBeans
Object • An object is a software bundle of variables and related methods. • Attribute (State) and Behavior (Method) • Message
Class 06/05/2002 2.7
Class Body • Constructor • Declarations for the Variables • Methods to implement the behavior
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.
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.
Lab Activities (Week 1) • Tutorial 1 (Java Application) • Tutorial 3 (JCreator LE) - Assignment