Java PAL.  Contains the development kit and the runtime environment ( aka the Java Virtual Machine )  Download Link:

Slides:



Advertisements
Similar presentations
CSCE 145: Algorithmic Design I Chapter 1 Intro to Computers and Java Muhammad Nazmus Sakib.
Advertisements

Visual and Internet Programming using JAVA
Object Orientated Programming
IC211 Object Oriented Programming Overview of Java.
Java: History and Introduction (Lecture # 1). History… Java – Based on C and C++ – Developed in 1991 for intelligent consumer electronic devices – Green.
Lecture 2: Do you speak Java?. From Problem to Program Last Lecture we looked at modeling with objects! Steps to solving a business problem –Investigate.
1 Fall 2008ACS-1903 Chapter 1 Topics Java History Java Programs Why Program? Computer Systems: Hardware and Software Programming Languages What Is a Program.
Introduction to Computer Programming CSC 1401: Introduction to Programming with Java Lecture 2 Wanda M. Kunkle.
1 Chapter 3 Programs and Packages. 2 Java Virtual Machine (JVM) Java programs execute on the JVM. The JVM is a virtual rather than a physical machine,
 2002 Prentice Hall. All rights reserved. Week 1 - Introduction to Object- Oriented Programming Outline 1.1 Machine Languages, Assembly Languages and.
Introduction to Java.
Java How to Program, 9/e Instructor: José M. Reyes Álamo © by Pearson Education, Inc. All Rights Reserved.
01 Introduction to Java Technology. 2 Contents History of Java What is Java? Java Platforms Java Virtual Machine (JVM) Java Development Kit (JDK) Benefits.
Getting Started What is Java? A programming language –Fully buzzword-compliant: A simple, object oriented, distributed, interpreted, robust, secure,
BASIC JAVA PROGRAMMING TUTORIAL. History  James Gosling and Sun Microsystems  Oak  Java, May 20, 1995, Sun World  Hot Java –The first Java-enabled.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 1 – Introduction to Computers, the Internet, and the Web Outline 1.1 Introduction 1.2 What Is a.
Computer Programming-1 CSC 111 Chapter 1 : Introduction.
Introduction to Java Tonga Institute of Higher Education.
1 1 1 Introduction to Java. 2 History of Java Java – Originally for intelligent consumer-electronic devices – Then used for creating Web pages with dynamic.
+ 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.
CS413: Java Programming language Applications Applets
 2005 Pearson Education, Inc. All rights reserved. 1 Introduction & The Java Virtual Machine Small Java Chapter 1 1.
(C) 2010 Pearson Education, Inc. All rights reserved.  Java programs normally go through five phases  edit  compile  load  verify  execute.
An intro to programming. The purpose of writing a program is to solve a problem or take advantage of an opportunity Consists of multiple steps:  Understanding.
 2003 Prentice Hall, Inc. All rights reserved. 1 Java Training Course Dr. H.E. Dunsmore Purdue University Java – How to Program, Deitel (5 th Edition)
 2005 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and the World Wide Web.
CSE 1340 Class 3. Class 03 objectives State the difference between Machine Language vs. High Level Languages Discuss some characteristics of the Java.
Programming in Java This is a one semester course. You will learn the language and some basic programming skills. You are expected to read, program,
FRST JAVA PROGRAM. Getting Started with Java Programming A Simple Java Application Compiling Programs Executing Applications.
1 Module Objective & Outline Module Objective: After completing this Module, you will be able to, appreciate java as a programming language, write java.
Chapter 1: Introducing JAVA. 2 Introduction Why JAVA Applets and Server Side Programming Very rich GUI libraries Portability (machine independence) A.
 2002 Prentice Hall. All rights reserved. Chapter 1 – Introduction to Computers, the Internet, and the Web Outline 1.1 Introduction 1.2 What Is a Computer?
1.8History of Java Java –Based on C and C++ –Originally developed in early 1991 for intelligent consumer electronic devices Market did not develop, project.
Jaeki Song ISQS6337 JAVA Lecture 03 Introduction to Java -The First Java Application-
Java and C# [this is a bonus – it is not a required lesson] ACO101: Introduction to Computer Science.
1 CSC204 – Programming I Lecture 2 Intro to OOP with Java.
© 2012 Pearson Education, Inc. All rights reserved. 1-1 Why Java? Needed program portability – Program written in a language that would run on various.
National Taiwan University Department of Computer Science and Information Engineering National Taiwan University Department of Computer Science and Information.
4-Nov-15 Air Force Institute of Technology Electrical and Computer Engineering Object-Oriented Programming Design Topic 1: The Java Environment Maj Joel.
CT1513 Introduction To java © A.AlOsaimi.
J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program Design, Second Edition Second Edition D.S. Malik D.S. Malik.
Core Java Introduction Byju Veedu Ness Technologies httpdownload.oracle.com/javase/tutorial/getStarted/intro/definition.html.
1. An Introduction A Programming Language A Technology Java Development Kit Java API One Language: Three Editions Standard Edition Enterprise Edition.
Java Basics 1 Brief History of Java and Overview of Langauge.
© 2012 Pearson Education, Inc. All rights reserved types of Java programs Application – Stand-alone program (run without a web browser) – Relaxed.
introductory lecture on java programming
©2016 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved. CSC 110 – INTRO TO COMPUTING - PROGRAMMING Overview of Programming.
3/5/2002e-business and Information Systems1 Java Java Java Virtual Machine (JVM) Java Application Program Interface (API) HW Kernel API Application Programs.
Java How to Program, 9/e Presented by: José M. Reyes Álamo © by Pearson Education, Inc. All Rights Reserved.
1 Introduction Read D&D Sec 1.8; Sec 1.13 THE Java tutorial -
ITP 109 Week 2 Trina Gregory Introduction to Java.
1 Chapter 1 Java –Originally for intelligent consumer-electronic devices –Then used for creating Web pages with dynamic content –Now also used for: Develop.
Execution ways of program References: www. en.wikipedia.org/wiki/Integrated_development_environment  You can execute or run a simple java program with.
Introduction to Programming 1 1 2Introduction to Java.
Chapter 1 – Introduction to Computers, the Internet, and the Web Outline 1.1 Introduction 1.2 What Is a Computer? 1.3 Computer Organization 1.4 Evolution.
Sung-Dong Kim, Dept. of Computer Engineering, Hansung University Java - Introduction.
Introduction to Algorithm. What is Algorithm? an algorithm is any well-defined computational procedure that takes some value, or set of values, as input.
CS-140 Dick Steflik Lecture 3. Java C++ Interpreted optimized for the internet Runs on virtual ized machine Derived from C++ Good object model Widely.
Introduction to Computers, the Internet and the World Wide Web
Chapter 1 – Introduction to Computers, the Internet, and the Web
Lecture 1: Introduction to JAVA
Internet and Java Foundations, Programming and Practice
Java programming lecture one
2.1. Compilers and Interpreters
Introduction to Java Dept. Business Computing University of Winnipeg
Introduction CSC 111.
Chapter 1 – Introduction to Computers, the Internet, and the Web
Computer Programming-1 CSC 111
Outcome of the Lecture Upon completion of this lecture you will be able to understand Fundamentals and Characteristics of Java Language Basic Terminology.
Presentation transcript:

Java PAL

 Contains the development kit and the runtime environment ( aka the Java Virtual Machine )  Download Link:  Installation ◦ Detailed instructions in the “Read This Before You Begin” section. ◦ Environment Variables  Path  Classpath

 Originally was to be called “Oak”  Open Source Software ( free!! )

 Mainframes, minicomputers, servers, desktops, notebooks, mobile devices, intelligent consumer devices  Windows, Linux, Unix, Macintosh, etc.

 Application Programming Interface  Class Library  Packages ◦ Classes  Methods  Statements 

 Application ◦ A stand-alone program that runs on a computer.  Applet ◦ An applet is a Java program that is executed and viewed in a browser ( IE, Firefox, Navigator, etc. )  Servlet ◦ A servlet is a Java program that runs on a Web server or application server and provides server-side processing such as accessing a database and e-commerce transactions.

◦ An object represents something in the real world, such as a car, an employee, or an item in an inventory. ◦ Objects encapsulate attributes and behavior  An attribute is a piece of information  A behavior is an operation that may be used to manipulate the value of an attribute

 Reusable software components that model real-world items  Look all around you  People, animals, plants, cars, etc.  Attributes  Size, shape, color, weight, etc.  Behaviors  Babies cry, crawl, sleep, etc.  Even though Java is an object-oriented programming language, we will be doing procedural programming using the language. In the CIS 182/282 courses you will explore object-oriented programming in Java.

 Java programs go through five phases: ◦ Edit  Programmer writes program using an editor; stores program on disk with the.java file name extension ◦ Compile  Use javac (the Java compiler) to create bytecodes from source code program; bytecodes stored in.class files ◦ Load  Class loader reads bytecodes from.class files into memory ◦ Verify  Bytecode verifier examines bytecodes to ensure that they are valid and do not violate security restrictions ◦ Execute  Java Virtual Machine (JVM) uses a combination of interpretation and just-in-time compilation to translate bytecodes into machine language

 Classes are the fundamental unit of programming in Java.  Classes may be composed of: ◦ variablescorresponds to attributes ◦ methodscorresponds to behaviours

public class HelloWorld { public static void main(String args[]) { System.out.println(“Hello World!”); }  class is: HelloWorld  method is: main  header: public static void main(String args[])

 A translator translates a program (class) in one language into another (often a machine language).  A translator may be a: ◦ compilertranslate only ◦ interpretertranslate and execute  Java uses both a compiler and an interpreter ( as do applications in the Visual Studio environment )

 If you successfully compile a Java class, you produce a class file. This is a file with the same name as the program but with a.class extension  A Class file contains an intermediate language or virtual machine language. In Java this intermediate language is called bytecode.