CHAPTER 1. Introduction to JAVA Programming

Similar documents
Introduction to Java

Index. Course Outline. Grading Policy. Lab Time Distribution. Important Instructions

Outline. Introduction to Java. What Is Java? History. Java 2 Platform. Java 2 Platform Standard Edition. Introduction Java 2 Platform

Java Programming Language Mr.Rungrote Phonkam

History Introduction to Java Characteristics of Java Data types

Fundamentals of Programming. By Budditha Hettige

2 Introduction to Java. Introduction to Programming 1 1

Introduction to Java. Lecture 1 COP 3252 Summer May 16, 2017

Networks Programming Engr. Abdul-Rahman Mahmood MS, PMP, MCP, QMR(ISO9001:2000)

Learning objectives. The Java Environment. Java timeline (cont d) Java timeline. Understand the basic features of Java

8/23/2014. Chapter Topics. Introduction. Java History. Why Program? Java Applications and Applets. Chapter 1: Introduction to Computers and Java

Chapter 1: Introduction to Computers and Java

Chapter 1 Introduction to Computers, Programs, and Java

II. Compiling and launching from Command-Line, IDE A simple JAVA program

Introduction to JAVA Programming Language

Chapter 1 Introduction to Computers, Programs, and Java

Eng. Mohammed S. Abdualal

Lecture 1: Introduction to Java

Chapter 1 Introduction to Computers, Programs, and Java. What is a Computer? A Bit of History

Chapter 1 Introduction to Java

Introduction to Java

1. Introduction. Java. Fall 2009 Instructor: Dr. Masoud Yaghini

Certified Core Java Developer VS-1036

Lecture 1: Overview of Java

Chapter 1 Introduction to Computers, Programs, and Java

Introduction to Java Programming CPIT 202. WEWwwbvxnvbxmnhsgfkdjfcn

C O M P U T A T I O N A L P H Y S I C S

C++ Spring Break Packet 11 The Java Programming Language

IQTIDAR ALI Lecturer IBMS Agriculture University Peshawar

1. What is Jav a? simple

Java Language. Programs. Computer programs, known as software, are instructions to the computer. You tell a computer what to do through programs.

Chapter 1 Introduction to Computers, Programs, and Java

Lesson 01 Introduction

CHAPTER 1 Introduction to Computers and Java

CT 229. CT229 Lecture Notes. Labs. Tutorials. Lecture Notes. Programming II CT229. Objectives for CT229. IT Department NUI Galway

Getting Started with Java. Atul Prakash

Chapter 1 Introduction to Computers, Programs, and Java

IT151: Introduction to Programming (java)

Programming. Syntax and Semantics

Introduction to Java Programming

Chapter 1: Introduction to Computers, Programs, and Java

Programming with Java

Java is a high-level programming language originally developed by Sun Microsystems and released in Java runs on a variety of

Java Professional Certificate Day 1- Bridge Session

Goals. Java - An Introduction. Java is Compiled and Interpreted. Architecture Neutral & Portable. Compiled Languages. Introduction to Java

Eng. Mohammed Alokshiya

Introduction to Programming (Java) 2/12

CSE 421 Course Overview and Introduction to Java

Getting Started With Java

History of Java. Java was originally developed by Sun Microsystems star:ng in This language was ini:ally called Oak Renamed Java in 1995

An Introduction to Software Engineering. David Greenstein Monta Vista High School

COMP6700/2140 JDK Tools

Class 1: Homework. Intro to Computer Science CSCI-UA.0101 New York University Courant Institute of Mathematical Sciences Fall 2017

Objectives. Chapter 1 Introduction to Computers, Programs, and Java. What is a Computer?

C02: Overview of Software Development and Java

Lesson 2: First Java Programs

Outline. Overview. Control statements. Classes and methods. history and advantage how to: program, compile and execute 8 data types 3 types of errors

Chapter 1 Introduction to Computers, Programs, and Java

Introduction. Introduction to OOP with Java. Lecture 01: Introduction to OOP with Java - AKF Sep AbuKhleiF -

Lesson 04: Our First Java Program (W01D4

The Computer System. Hardware = Physical Computer. Software = Computer Programs. People = End Users & Programmers. people

Introduction to OOP with Java. Instructor: AbuKhleif, Mohammad Noor Sep 2017

COT 3530: Data Structures. Giri Narasimhan. ECS 389; Phone: x3748

Lecture 4: Introduction to Java and your Development Environment

This lecture will take you through simple and practical approach while learning Java Programming language.

Object Oriented Concepts and Programming (CSC244) By Dr. Tabbasum Naz

Chapter 1 Introduction to Computers, Programs, and Java

Assoc. Prof. Dr. Marenglen Biba. (C) 2010 Pearson Education, Inc. All rights reserved.

Assoc. Prof. Dr. Marenglen Biba. (C) 2010 Pearson Education, Inc. All rights reserved.

CompSci 125 Lecture 02

Short Questions. Instructor: Created by: Visit: 2/2/2018 OOP with JAVA. Muhammad Naveed

9/11/08 (c) 2008 Matthew J. Rutherford Class (c) 2008 Matthew J. Rutherford Class

Java Puzzle Ball Nick Ristuccia

CS260 Intro to Java & Android 02.Java Technology

Computational Applications in Nuclear Astrophysics using Java Java course Lecture 1


G52PGP. Lecture oo3 Java (A real object oriented language)

3 CREATING YOUR FIRST JAVA APPLICATION (USING WINDOWS)

Introduction to Java and OOP. Hendrik Speleers

Introduction to OOP Using Java Pearson Education, Inc. All rights reserved.

Core JAVA Training Syllabus FEE: RS. 8000/-

Selected Java Topics

Advanced Object-Oriented Programming Introduction to OOP and Java

Introduction to Computers and Java. Objectives. Outline. Harald Gall, Prof. Dr. Institut für Informatik Universität Zürich.

Introduction to Computers and Java. Objectives. Outline. Harald Gall, Prof. Dr. Institut für Informatik Universität Zürich.

Introduction to Computers and Java

Seminar report Java Submitted in partial fulfillment of the requirement for the award of degree Of CSE

Introduction to Computers and Java

Introduction to Java. Liang, Introduction to Java Programming, Ninth Edition, (c) 2013 Pearson Education, Inc. All rights reserved.

CSC116: Introduction to Computing - Java

How to Install (then Test) the NetBeans Bundle

CS 11 java track: lecture 1

Module 1: Introduction to Computers, Programs, and Java

Class List. Java Must Have. Class Goals. Class Goals. Schedule

Lecture 1 - Introduction (Class Notes)

CSC116: Introduction to Computing - Java

CSC116: Introduction to Computing - Java

Introduction to Visual Basic and Visual C++ Introduction to Java. JDK Editions. Overview. Lesson 13. Overview

Introduction to Computers and Java

Chapter 1. Introduction

Transcription:

CHAPTER 1 Introduction to JAVA Programming

What java is Java is high level You can use java to write computer applications that computes number,process words,play games,store data, etc.

History of Java. History Sun Microsystems ( Green Project by James Gosling) Platform independent Oak to Java HotJava is the first java-eneble Web browser

Characteristics of Java Java is simple Java is object-oriented Java is platform Independent Java is safe Java is multi-thread Java is garbage collected

Java is simple Java was designed to make it much easier to write bug free code. Java is easy to read and write Java dose not need users to do memory allocation and deallocation Java is easy to learn

Java is Object-Oriented Simpler and easier to read program More efficient reuse of code Faster time to market More robust and error-free code

Java is Platform Independent A Java program never really executes natively on the host machine Rather a special native program called Java interpreter read the byte code and executes the corresponding native machine instructions You don t even need to recompile

Java is Safe Java implements a robust exception handling mechanism to deal with both expected and unexpected errors

Java is Multi-Threaded A single Java program can have many different processes executing independently continuously

Java is Garbage Collected Objects are created by Java s new operator, and memory for new objects is allocated on the heap at run time Garbage collection is the process automatically freeing objects that are no longer referenced by the program This frees the programmer from having to keep track of when to free allocated memory,thereby preventing many potential bugs and headaches.

Java Platform Java SE(Java Standard Edition) can be use to develop client-side standalone application or applet Java Development Kit(JDK) Java Runtime Environment(JRE) JDK JRE JVM

Java Platform Java EE(Java Enterprise Edition) can be use to develop server-side applications such as Java servlets,java Server Pages,Enterprise Java Beans and Web Services. Java2ME(Java Micro Edition) can be use to develop application for mobile devices such as cellphone.

Java Virtual Machine(JVM) JVM is a platform-independent execution environment that converts Java bytecode into machine language and executes it. Most programming languages compile source code directly into machine code that is designed to run on a specific microprocessor architecture or operating system, such as Windows or UNIX.

Java Virtual Machine(JVM)

Java Develop Tools JDK Compiler Debugger Editor Notepad Editplus Eclipse NetBeans Documentation

The Background

Type of Java Program. Java Application Standalone not use webbrowser for processing and can be run every devices with JRE installed. Java Applet Server-side and Run on web browser

Type of Error Syntax Error Logical Error

Object Oriented Programming Object-oriented programming (OOP) is a programming paradigm based on the concept of "objects", which are data structures that contain data, in the form of fields, often known as attributes; and code, in the form of procedures, often known as methods.

What is class A class is a blueprint or prototype from which objects are created. This section defines a class that models the state and behavior of a real-world object. It intentionally focuses on the basics, showing how even a simple class can cleanly model state and behavior.

What is Object An object is a software bundle of related state and behavior. Software objects are often used to model the real-world objects that you find in everyday life. This lesson explains how state and behavior are represented within an object, introduces the concept of data encapsulation, and explains the benefits of designing your software in this manner.

What is Method A method (or message) in object-oriented programming (OOP) is a procedure associated with an object class. An object is made up of behavior and data. Data is represented as properties of the object and behavior as methods. Methods are also the interface an object presents to the outside world. For example a window object would have methods such as open and close.

A part of class Attribute name : type Method Student -idno : String -name : String +department : String -gpa : double +register() +getname() +getgpa() Class Name Modifier

Installing Java Go to http://www.google.com Type j2se download Choose Java Se with the latest version

Developing Your First Java Program Use text editor to write a file HelloWorld.java public class HelloWorld{ public static void main(string[] args){ System.out.println( Hello World ); } }

Compiling and Running Program To compile a Java program Use command javac <filename.java> Example: javac HelloWorld.java To run a Java program Use command java <filename> Example: java HelloWorld