Lecture 1: An Introduction to Java. What is Java? Programming language developed by Sun Microsystems in 1995 –Inherits its syntax from c –Adapted the.

Slides:



Advertisements
Similar presentations
Object-Oriented Programming Basics Prof. Ankur Teredesai, Computer Science Department, RIT.
Advertisements

Computer Science Dept. Fall 2003 Object models Object models describe the system in terms of object classes An object class is an abstraction over a set.
OOP - Object Oriented Programming Object Oriented Programming is an approach to programming that was developed to make large programs easier to manage.
MC697 Object-Oriented Programming Using Java. In this class, we will cover: How the class will be structured Difference between object-oriented programming.
Unified Modeling Language
1 Java Basics. 2 Compiling A “compiler” is a program that translates from one language to another Typically from easy-to-read to fast-to-run e.g. from.
Java: History and Introduction (Lecture # 1). History… Java – Based on C and C++ – Developed in 1991 for intelligent consumer electronic devices – Green.
Objects and Classes First Programming Concepts. 14/10/2004Lecture 1a: Introduction 2 Fundamental Concepts object class method parameter data type.
1 SWE Introduction to Software Engineering Lecture 23 – Architectural Design (Chapter 13)
Aalborg Media Lab 18-Jun-15 Introduction Introduction to System Design I Fall 2004.
1 Basic Object Oriented Concepts Overview l What is Object-Orientation about? l What is an Object? l What is a Class? l Constructing Objects from Classes.
7M701 1 Class Diagram advanced concepts. 7M701 2 Characteristics of Object Oriented Design (OOD) objectData and operations (functions) are combined 
Introduction to Programming. To gain a sound knowledge of programming principles To gain a sound knowledge of object- orientation To be able to critically.
Sharif University of Technology Session # 7.  Contents  Systems Analysis and Design  Planning the approach  Asking questions and collecting data 
JAVA: An Introduction to Problem Solving & Programming, 6 th Ed. By Walter Savitch ISBN © 2012 Pearson Education, Inc., Upper Saddle River,
OBJECT ORIENTED PROGRAMMING IN C++ LECTURE
Sadegh Aliakbary Sharif University of Technology Fall 2011.
TCU CoSc Introduction to Programming (with Java) Course Introduction.
BASIC JAVA PROGRAMMING TUTORIAL. History  James Gosling and Sun Microsystems  Oak  Java, May 20, 1995, Sun World  Hot Java –The first Java-enabled.
Introduction To System Analysis and design
+ Java vs. Javascript Jessi Style. + Java Compiled Can stand on its own Written once, run anywhere Two-stage debugging Java is an Object Oriented Programming.
Object Oriented Software Development
Sadegh Aliakbary Sharif University of Technology Spring 2011.
Sadegh Aliakbary Sharif University of Technology Fall 2010.
CMSC 202 Computer Science II for Majors Object-Oriented Programming.
Unified Modeling Language, Version 2.0
Sadegh Aliakbary Sharif University of Technology Fall 2012.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to.
Module Overview n Module Title: OO Programming n Module Code: MIT3446 n Module Value: 3.0 n Duration: 15 weeks n Class-Contact Hours: Lecture15 hrs n Lab/Tutor30hrs.
Java Programming, 2E Introductory Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
What Is Java? According to Sun in a white paper: Java: A simple, object-oriented, network-savvy, interpreted, robust, secure, architecture-neutral, portable,
 Programming Language  Object Oriented Programming  JAVA – An Introduction  JAVA Milestones  JAVA Features.
1/26 On-demand Learning Series Software Engineering of Web Application - Object-Oriented Development & UML Hunan University, Software School.
Java Basics 1 Brief History of Java and Overview of Langauge.
COMPSCI 172 – Introduction to Objected- Oriented programming in Java Class hour: 12:05-12:55 pm MWF (section 1). 1:10-2:00 pm MWF (section 2) McGraw Room.
What is Java? Object Oriented Programming Language Sun Microsystems “Write Once, Run Everywhere” Bytecode and Virtual Machine Java Platform (Java VM and.
Introduction Mehdi Einali Advanced Programming in Java 1.
1 CSE Programming in C++. 2 Overview Sign roster list Syllabus and Course Policies Introduction to C++ About Lab 1 Fill Questionnaire.
Lesson 1 1 LESSON 1 l Background information l Introduction to Java Introduction and a Taste of Java.
Programming. To gain a sound knowledge of programming principles To gain a sound knowledge of object- orientation To be able to critically assess the.
1 Introduction Read D&D Sec 1.8; Sec 1.13 THE Java tutorial -
Introduction to Classes Intro to Computer Science CS1510, Section 2 Dr. Sarah Diesburg.
Object Oriented Programming and Data Abstraction Earl Huff Rowan University.
JAVA TRAINING IN NOIDA. JAVA Java is a general-purpose computer programming language that is concurrent, class-based, object-oriented and specifically.
Introduction to Java Programming, 4E Y. Daniel Liang.
1 Design Object Oriented Solutions Object Oriented Analysis & Design Lecturer: Mr. Mohammed Elhajj
Object-oriented programming (OOP) is a programming paradigm using "objects" – data structures consisting of data fields and methods together with their.
Fundamental of Java Programming (630002) Unit – 1 Introduction to Java.
Electronic Commerce Java (1)
UML Class & Object Diagram I
Object-Oriented programming for Beginners LEAPS Computing 2015
OOP - Object Oriented Programming
Dept of Computer Science University of Maryland College Park
Done By: Ashlee Lizarraga Ricky Usher Jacinto Roches Eli Gomez
Lecture 1 Introduction Richard Gesick.
GC101 Introduction to computer and program
Java Software Solutions
Lecture 1: Introduction to JAVA
Systems Analysis and Design With UML 2
Objects as a programming concept
Table of Contents Class Objects.
Object Oriented Concepts -I
C++.
An Overview of Java.
Advanced Programming Fall 2017.
Java Evolution Java History. Java Features.
Handout-2(a) Basic Object Oriented Concepts
WELCOME TO ALL STUDENTS IN MY CLASS: Hope You All Enjoyed C#
Introduction to Object-Oriented Software Development
Java Software Solutions
Presentation transcript:

Lecture 1: An Introduction to Java

What is Java? Programming language developed by Sun Microsystems in 1995 –Inherits its syntax from c –Adapted the object model from C++ Object Oriented Language Compiled and Interpreted Both WWW (applet) and stand alone (Application)

Applications and Applets Applications Applets

Birth and Growth of Java Invented by James Gosling in 1995 – originally not intended as a new language Originally intended for writing programs that control consumer appliances such as toasters and microwave ovens. Sun commissioned by Time-Warner to develop language Time Warner lost patience with delays –Sun lost contract –Sun gained new language Fundamental concept: Write once – Run Anywhere (write on one O/S run on any)

Object Orientation Object Oriented (oo) philosophy operates by modeling real world entities within a computer program. This involves using different characteristics for objects. Objects then interact by passing messages Object oriented design –A software design method that models the characteristics of abstract or real objects using classes and objects

Objects and Classes Object An object is a combination of some data (variables) and some actions (methods) Objects are the principal building blocks of object oriented programs. Each object is a programming unit consisting of data (instance variables) and functionality (instance methods) Class A template or type describing the fields and methods that we group together to represent something

Objects and Classes A class is a generalisation of an object – it is the blueprint from which instances of objects can be created. Once a class is designed, many objects can be constructed with the same behaviour Example: Student Students have certain characterisitics that distinguish them from each other…… Name University Course Age Gender

Objects and Classes An object is something you can use A class is a description of how to create an object Objects are ‘real’ classes are not.

Class (Template) Name University Course Age Gender Marie Trinity History 21 Female Frank Ucc BIS 20 Male

Student Example Marie and Frank are two instances of a student They have the same general information but can be differentiated by the specific values assigned to them We can pass messages to each student object to find out their characteristics: What is your name?(frank) What is your course?(BIS)