Java Basics 1 Brief History of Java and Overview of Langauge.

Slides:



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

Object Oriented Programming in Java George Mason University Fall 2011
Object Orientated Programming
IC211 Object Oriented Programming Overview of Java.
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.
Introduction to Java Kiyeol Ryu Java Programming Language.
1 Fall 2008ACS-1903 Chapter 1 Topics Java History Java Programs Why Program? Computer Systems: Hardware and Software Programming Languages What Is a Program.
How to Create a Java program CS115 Fall George Koutsogiannakis.
2 Outline §Overview l history and advantage l how to: program, compile and execute l 8 data types l 3 types of errors §Control statements l Selection.
1 Programming Languages Translation  Lecture Objectives:  Be able to list and explain five features of the Java programming language.  Be able to explain.
Introduction to Java.
CSE 1301 J Lecture 2 Intro to Java Programming Richard Gesick.
01 Introduction to Java Technology. 2 Contents History of Java What is Java? Java Platforms Java Virtual Machine (JVM) Java Development Kit (JDK) Benefits.
LESSON 1 INTRODUCTION Compiled By: Edwin O. Okech [Tutor, Amoud University] JAVA PROGRAMMING.
Java PAL.  Contains the development kit and the runtime environment ( aka the Java Virtual Machine )  Download Link:
IB Computer Science II Paul Bui
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 Java Tonga Institute of Higher Education.
Chapter 1 Coding Introduction.
+ 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.
Basics Programming Concepts. Basics A computer program is a set of instructions to tell a computer what to do Machine language = circuit level language.
Java Beserkers Group 4. Start of Java Development began on June of 1991 by a group of computer scientist at the Sun Mircrosystems Company Development.
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.
Java Lecture 16: Dolores Zage. WWW n Was a method for distributing passive information n added forms and image maps n interaction was only a new way to.
Java Introduction Lecture 1. Java Powerful, object-oriented language Free SDK and many resources at
Introduction to Computers and Java Chapter 1.3. A Sip of Java: Outline History of the Java Language Applets A First Java Program Compiling a Java Program.
Introduction to the Java Virtual Machine 井民全. JVM (Java Virtual Machine) the environment in which the java programs execute The specification define an.
UCSC All rights reserved. No part of this material may be reproduced and sold. 1 IT1202-Fundamentals Of Programming (Using JAVA) Interacting with.
Computer Programming A program is a set of instructions a computer follows in order to perform a task. solve a problem Collectively, these instructions.
1 Module Objective & Outline Module Objective: After completing this Module, you will be able to, appreciate java as a programming language, write java.
Java ACO101: Introduction to Computer Science. The History of Java Started out as a research project at Sun Microsystems in 1991 Code named “Green” Based.
CS 11 java track: lecture 1 Administrivia need a CS cluster account cgi-bin/sysadmin/account_request.cgi need to know UNIX
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.
© 2012 Pearson Education, Inc. All rights reserved. 1-1 Why Java? Needed program portability – Program written in a language that would run on various.
Java Introduction 1. Introduction to Java Programming2 Computers and Computer Languages Computers are everywhere –how many computers do you own? Computers.
Compiling and the Java Virtual Machine (JVM). The syntax of Pseudocode is pretty loose –visual validation encourages a permissive approach –emphasized.
Chapter 1 Section 1.1 Introduction to Java Slides prepared by Rose Williams, Binghamton University Kenrick Mock, University of Alaska Anchorage.
JAVA PROGRAMMING BASICS CHAPTER 2. History of Java Begin with project Green in 1991 founded by Patrick Noughton, Mike Sheridan and James Gosling who worked.
We will talking about story of JAVA language. By Kristsada Songpartom.
Mini University July, 2005 A Little Taste of Java (but don’t tell your folks) (they might think there’s caffeine involved)
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.
Copyright © Mohamed Nuzrath Java Programming :: Syllabus & Chapters :: Prepared & Presented By :: Mohamed Nuzrath [ Major In Programming ] NCC Programme.
Lecture 1. Introduction to Programming and Java MIT- AITI 2003.
1 The JAVA Language Object Oriented Technology Mithani Binjan M.
© 2012 Pearson Education, Inc. All rights reserved types of Java programs Application – Stand-alone program (run without a web browser) – Relaxed.
Today… “Hello World” ritual. Brief History of Java & How Java Works. Introduction to Java class structure. But first, next slide shows Java is No. 1 programming.
©2016 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved. CSC 110 – INTRO TO COMPUTING - PROGRAMMING Overview of Programming.
Agenda  Brief History of Java and overview of language  Solve a problem to demonstrate Java syntax  Discuss coding issues and style via example.
Lecture1 Instructor: Amal Hussain ALshardy. Introduce students to the basics of writing software programs including variables, types, arrays, control.
ITP 109 Week 2 Trina Gregory Introduction to Java.
Introduction to 1. What is Java ? Sun Microsystems Java is a programming language and computing platform first released by Sun Microsystems in The.
Sung-Dong Kim, Dept. of Computer Engineering, Hansung University Java - Introduction.
Fundamental of Java Programming (630002) Unit – 1 Introduction to Java.
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.
Chapter 1 Coding Introduction.
Java™ 2 Platform Getting Started.
Lecture 1b- Introduction
JAVA, JAVA Applets, and JavaScript
Chapter 1 Introduction to Computers, Programs, and Java
Introduction to.
An Overview of Java.
Chapter 1 FOUNDATIONS OF JAVA
Introduction to Java Dept. Business Computing University of Winnipeg
Chapter 1 Coding Introduction.
Introduction CSC 111.
(Computer fundamental Lab)
Java History, Editions, Version Features
By Rajanikanth B Overview Of Java By Rajanikanth B
IB Computer Science II Paul Bui
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 Basics 1 Brief History of Java and Overview of Langauge

Java Basics 2 A brief history of Java –"Java, whose original name was Oak, was developed as a part of the Green project at Sun. It was started in December '90 by Patrick Naughton, Mike Sheridan and James Gosling and was chartered to spend time trying to figure out what would be the "next wave" of computing and how we might catch it. They came to the conclusion that at least one of the waves was going to be the convergence of digitally controlled consumer devices and computers. "  Applets and Applications –" The team returned to work up a Java technology-based clone of Mosaic they named "WebRunner" (after the movie Blade Runner), later to become officially known as the HotJava TM browser. It was WebRunner was just a demo, but an impressive one: It brought to life, for the first time, animated, moving objects and dynamic executable content inside a Web browser. That had never been done. [At the TED conference.]"demobrought to lifedynamic executable

Java Basics 3 How Java Works  Java's platform independence is achieved by the use of the Java Virtual Machine  A Java program consists of one or more files with a.java extension –these are plain old text files  When a Java program is compiled the.java files are fed to a compiler which produces a.class file for each.java file  The.class file contains Java bytecode.  Bytecode is like machine language, but it is intended for the Java Virtual Machine not a specific chip such as a Pentium or PowerPC chip

Java Basics 4 More on How Java Works  To run a Java program the bytecode in a.class file is fed to an interpreter which converts the byte code to machine code for a specific chip (IA-32, PowerPC)  Some people refer to the interpreter as "The Java Virtual Machine" (JVM)  The interpreter is platform specific because it takes the platform independent bytecode and produces machine language instructions for a particular chip  So a Java program could be run an any type of computer that has a JVM written for it. –PC, Mac, Unix, Linux, BeaOS, Sparc

Java Basics 5 A Picture is Worth… The Interpreter's are sometimes referred to as the Java Virtual Machines The output of the compiler is.class file

Java Basics 6 So What!  The platform independence of Java may be a huge marketing tool, but is actually of little use to people learning Object Oriented Programming and Abstract Data Types  What is of use is the simplicity of the Java syntax and programming concepts  Java is a "pure" Object Oriented Language –encapsulation, inheritance, and polymorphism –all code must be contained in a class –no free functions (functions that do not belong to some class) like C++, although someone who wants to write messy Java code certainly can –Is OO the best programming paradigm?

Java Basics 7 HelloWorld.java /** * A simple program */ public class HelloWorld { public static void main(String[] args) { System.out.println("HELLO CS307!"); }

Java Basics 8 More on Java Programs  All code part of some class public class Foo { //start of class Foo /*all code in here!*/ } // end of class Foo  The code for class Foo will be in a file named Foo.java –just a text file with the.java extension –a class is a programmer defined data type  A complete program will normally consist of many different classes and thus many different files

Java Basics 9 Error Types  Syntax error / Compile errors –caught at compile time. –compiler did not understand or compiler does not allow  Runtime error –something “Bad” happens at runtime. Java breaks these into Errors and Exceptions  Logic Error –program compiles and runs, but does not do what you intended or want