Introduction to Java Chapter 1 - Introduction to Java1 Chapter 1 Introduction to Java.

Slides:



Advertisements
Similar presentations
Lecture 2 - Introduction Objective C is used primarily for application development on Apple's Mac OS X and iPhone. On the Apple it is used together with.
Advertisements

JAVA Programming Environment © Juhani Välimäki 2003.
Lab#1 (14/3/1431h) Introduction To java programming cs425
ITEC200 – Week03 Inheritance and Class Hierarchies.
Inheritance and Class Hierarchies Chapter 3. Chapter 3: Inheritance and Class Hierarchies2 Chapter Objectives To understand inheritance and how it facilitates.
Objects and Classes First Programming Concepts. 14/10/2004Lecture 1a: Introduction 2 Fundamental Concepts object class method parameter data type.
Introduction to Java Programming
Java Programming, 3e Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 2: Operating-System Structures Modified from the text book.
Java Programming, 2E Introductory Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
Introduction to Java Appendix A. Appendix A: Introduction to Java2 Chapter Objectives To understand the essentials of object-oriented programming in Java.
Remote OMNeT++ v2.0 Introduction What is Remote OMNeT++? Remote environment for OMNeT++ Remote simulation execution Remote data storage.
Java Virtual Machine Java Virtual Machine A Java Virtual Machine (JVM) is a set of computer software programs and data structures that use.
Chapter 1 What is Programming? Lecture Slides to Accompany An Introduction to Computer Science Using Java (2nd Edition) by S.N. Kamin, D. Mickunas, E.
CSC 142 B 1 CSC 142 Java objects: a first view [Reading: chapters 1 & 2]
1 Chapter 3 and 6– Classes, Objects and Methods Object-Oriented Programming Concepts – Read it from Java TutorialJava Tutorial Definition: A class is a.
Chapter 2: Operating-System Structures. 2.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 2: Operating-System Structures Operating.
Introduction to the Java Virtual Machine 井民全. JVM (Java Virtual Machine) the environment in which the java programs execute The specification define an.
An Introduction to Java Chapter 11 Object-Oriented Application Development: Part I.
JavaScript, Fourth Edition
Chapter 1: Introducing JAVA. 2 Introduction Why JAVA Applets and Server Side Programming Very rich GUI libraries Portability (machine independence) A.
Chapter 6 Object-Oriented Java Script JavaScript, Third Edition.
Your First Java Application Chapter 2. 2 Program Concepts Modern object-oriented programs help us build models to manage the complexity found in a problem.
Introduction to C++ Programming Language
Lecture :2 1.  DEFENTION : Java is a programming language expressly designed for use in the distributed environment of the Internet. It was designed.
Java Programming, 2E Introductory Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
Continuations And Java Regis -
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 2: Operating-System Structures.
JAVA BASICS Prepared by The Smartpath Information Systems
SNPL1 Woochang Lim What (Variable) + How (Function) = Object Objects are the physical and conceptual things we find in the universe around us. Object-Oriented.
Lecture 8 February 29, Topics Questions about Exercise 4, due Thursday? Object Based Programming (Chapter 8) –Basic Principles –Methods –Fields.
1 Chapter 8 – Classes and Object: A Deeper Look Outline 1 Introduction 2 Implementing a Time Abstract Data Type with a Class 3 Class Scope 4 Controlling.
Basic OOP Concepts and Terms. In this class, we will cover: Objects and examples of different object types Classes and how they relate to objects Object.
CT1513 Introduction To java © A.AlOsaimi.
Chapter 6 An Introduction to System Software and Virtual Machines.
Chapter 6 Introduction to Defining Classes. Objectives: Design and implement a simple class from user requirements. Organize a program in terms of a view.
11/28/2015B.Ramamurthy1 Object-Oriented Design and Java B.Ramamurthy.
CSC 142 B 1 CSC 142 Java objects: a first view [Reading: chapters 1 & 2]
Introduction to Java Chapter 7 - Classes & Object-oriented Programming1 Chapter 7 Classes and Object-Oriented Programming.
Component 4: Introduction to Information and Computer Science Unit 5: Overview of Programming Languages, Including Basic Programming Concepts Lecture 5.
Chapter 4 Software. Chapter 4: Software Generations of Languages Each computer is wired to perform certain operations in response to an instruction. An.
1 Chapter 5: Defining Classes. 2 Basics of Classes An object is a member of a class type What is a class? Fields & Methods Types of variables: –Instance:
Introduction to Object-Oriented Programming Lesson 2.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 2: Operating-System Structures.
Chapter 5 System Modeling. What is System modeling? System modeling is the process of developing abstract models of a system, with each model presenting.
Inheritance and Class Hierarchies Chapter 3. Chapter 3: Inheritance and Class Hierarchies2 Chapter Objectives To understand inheritance and how it facilitates.
Inheritance and Class Hierarchies Chapter 3. Chapter Objectives  To understand inheritance and how it facilitates code reuse  To understand how Java.
CSCI 212 Object-Oriented Programming in Java. Prerequisite: CSCI 111 variable assignment statement while loop for loop post-increment (i++) strong typing.
Lesson 1 1 LESSON 1 l Background information l Introduction to Java Introduction and a Taste of Java.
Design and implementation Chapter 7 – Lecture 1. Design and implementation Software design and implementation is the stage in the software engineering.
Introduction to Java. Java  An Object-Oriented, platform-neutral, secure language.  Object Oriented – software development method – a program is thought.
RealTimeSystems Lab Jong-Koo, Lim
Java Programming, 3e Concepts and Techniques Chapter 1 Section 56 – An Introduction to Java.
Geoff Holmes and Bernhard Pfahringer COMP206-08S General Programming 2.
Maitrayee Mukerji. INPUT MEMORY PROCESS OUTPUT DATA INFO.
Objects as a programming concept
Chapter 2: Operating-System Structures
Objects as a programming concept
Table of Contents Class Objects.
Your First Java Application
Tonga Institute of Higher Education
Chapter 2: System Structures
Chapter 7 –Implementation Issues
CIS16 Application Development and Programming using Visual Basic.net
Java objects: a first view
Chapter 2: Operating-System Structures
Defining Classes and Methods
Abstract Data Types Abstraction is to distill a system to its most fundamental parts. Applying the abstraction paradigm to the design of data structures.
from Lutz Dietrich and Hans Kluge
Presentation transcript:

Introduction to Java Chapter 1 - Introduction to Java1 Chapter 1 Introduction to Java

Chapter 1 - Introduction to Java2 Introduction to Java Java is an object-oriented language It is platform-independent; a program will run unchanged on a PC, Mac, or Unix workstation Device-independent graphics are built directly into the language

Introduction to Java Chapter 1 - Introduction to Java3 Principal Elements of Java The Java programming language itself The Java Virtual Machine (JVM) –A “virtual computer” that executes Java code identically, regardless of host computer type –There must be a custom JVM for each type of computer executing Java programs The Java Application Programming Interface (API) –Defines the standard classes built into the language

Introduction to Java Chapter 1 - Introduction to Java4 Objects An object is a software component that incorpo- rates data and behaviors, which are actions that can be performed with the data –Data are stored in instance variables, which are hidden from the outside world –The behaviors are implemented by methods –Methods protect the data from direct modification by the outside world

Introduction to Java Chapter 1 - Introduction to Java5 Objects (2) Objects contain a nucleus of data surrounded and protected by methods These methods form an interface between the data and the outside world Objects communicate by calling each other’s methods

Introduction to Java Chapter 1 - Introduction to Java6 Communications Objects communicate by calling each other’s methods Each call has three components: –The name of the object being called followed by a period –The name of the method to execute –Any parameters needed by the method

Introduction to Java Chapter 1 - Introduction to Java7 Classes Classes are the software blueprints from which objects are made A class definition specifies the number and type of instance variables to include in an object, and the methods that implement the behavior of the object Many objects can be instantiated from a single class definition

Introduction to Java Chapter 1 - Introduction to Java8 Instantiating Objects Many objects can be instan- tiated from a single class Each object has its own copy of the instance variables defined in the class All objects from the class share the same method definitions

Introduction to Java Chapter 1 - Introduction to Java9 A First Java Program Class Definition Method Definition Comments Comment