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.

Slides:



Advertisements
Similar presentations
In Review JAVA C++ GUIs - Windows Webopedia.com.
Advertisements

Introduction To Java Objectives For Today â Introduction To Java â The Java Platform & The (JVM) Java Virtual Machine â Core Java (API) Application Programming.
Object Oriented Programming in Java George Mason University Fall 2011
University of Palestine software engineering department Introduction to data structures Introduction to java application instructor: Tasneem Darwish.
Java: History and Introduction (Lecture # 1). History… Java – Based on C and C++ – Developed in 1991 for intelligent consumer electronic devices – Green.
History  We first begin with Java which was released in 1995 by Sun Microsystems  Initially Java was 100% interpreted at runtime and was very slow 
1 Programming Languages Translation  Lecture Objectives:  Be able to list and explain five features of the Java programming language.  Be able to explain.
Tutorial 1 Introduction to Java Programming Bo Chen Department of Computer Science.
How to install Java CSC 2310 D M Rasanjalee. Steps 1.Download Java 2.Install Java 3.Update Path environmental variable 4.Verify Installation.
Introduction to Java.
Lecture 1: Overview of Java. What is java? Developed by Sun Microsystems (James Gosling) A general-purpose object-oriented language Based on C/C++ Designed.
01 Introduction to Java Technology. 2 Contents History of Java What is Java? Java Platforms Java Virtual Machine (JVM) Java Development Kit (JDK) Benefits.
Marlene Galea.  The JDK (Java Development Kit)  An IDE (Integrated Development Environment) ◦ Different IDEs include:  JCreator  NetBeans  BlueJ.
SERVLETS.
Java PAL.  Contains the development kit and the runtime environment ( aka the Java Virtual Machine )  Download Link:
Introduction to Java Programming. Contents 1. Java, etc. 2. Java's Advantages 3. Java's Disadvantages 4. Types of Java Code 5. Java Bytecodes 6. Steps.
Introduction to Java Tonga Institute of Higher Education.
CSC 142 A 1 CSC 142 Introduction to Java [Reading: chapter 0]
Chapter 1 Coding Introduction.
Parts of a Computer Why Use Binary Numbers? Source Code - Assembly - Machine Code.
Introduction to Java Kumar Harshit. Objectives ( 목적지 ) At the end of the lesson, the student should be able to: ● Describe the features of Java technology.
Java Workshop for Teachers May 6, 2005 A Brief Look at the Java Programming Language.
Sadegh Aliakbary. Copyright ©2014 JAVACUP.IRJAVACUP.IR All rights reserved. Redistribution of JAVACUP contents is not prohibited if JAVACUP.
11 Getting Started with C# Chapter Objectives You will be able to: 1. Say in general terms how C# differs from C. 2. Create, compile, and run a.
Sadegh Aliakbary Sharif University of Technology Fall 2010.
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.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Programming Languages Machine.
1.  At the end of this slide, student can:  Explore tools, features, properties and interface of the Textpad.  Creating a new project.  Open and run.
Sadegh Aliakbary Sharif University of Technology Fall 2012.
Chapter 1© copyright Janson Industries Java ▮ Java programming concepts ▮ Downloading the JDK ▮ Java coding and executing example This presentation.
UCSC All rights reserved. No part of this material may be reproduced and sold. 1 IT1202-Fundamentals Of Programming (Using JAVA) Interacting with.
JAVA Java is a programming language and computing platform first released by Sun Microsystems in It was first developed by James Gosling at Sun Microsystems,
Java and C# [this is a bonus – it is not a required lesson] ACO101: Introduction to Computer Science.
POS 406 Java Technology And Beginning Java Code
Java means Coffee Java Coffee Beans The name “JAVA” was taken from a cup of coffee.
COP 3330 Notes 1/12. Today's topics Downloading Java and Eclipse Hello World Basic control structures Basic I/O Strings.
Java Programming Presented by Daniel Rosenthal Friday, November 30 th, 2007.
The Joy of Programming (also known as) Introduction to Object-Oriented Programming.
National Taiwan University Department of Computer Science and Information Engineering National Taiwan University Department of Computer Science and Information.
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)
CSE S. Tanimoto Java Introduction 1 Java A Programming Language for Web-based Computing with Graphics.
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.
Lecture 1. Introduction to Programming and Java MIT- AITI 2003.
22-July-2002cse142-13B-Development © 2002 University of Washington1 Development Tools CSE 142, Summer 2002 Computer Programming 1
Java Basics 1 Brief History of Java and Overview of Langauge.
A compiler is a computer program that translate written code (source code) into another computer language Associated with high level languages A well.
Application Architecture Using Java Hong Li. Introduction Developed by a team led by James Gosling at Sun Microsystem. Originally called Oak, designed.
Introduction Mehdi Einali Advanced Programming in Java 1.
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.
introductory lecture on java programming
Lecture1 Instructor: Amal Hussain ALshardy. Introduce students to the basics of writing software programs including variables, types, arrays, control.
3/5/2002e-business and Information Systems1 Java Java Java Virtual Machine (JVM) Java Application Program Interface (API) HW Kernel API Application Programs.
การเขียนโปรแกรมภาษา จาวา Java Programming อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา Chapter 1.
ITP 109 Week 2 Trina Gregory Introduction to Java.
Introduction to Programming 1 1 2Introduction to Java.
Introduction to JAVA Programming
Introduction to 1. What is Java ? Sun Microsystems Java is a programming language and computing platform first released by Sun Microsystems in The.
CS 201 Lecture 1 (b) Using an IDE Tarik Booker CS 201: Introduction to Programming California State University, Los Angeles.
Fundamental of Java Programming (630002) Unit – 1 Introduction to Java.
Chapter 1 Coding Introduction.
Chapter 1 Introduction to Computers, Programs, and Java
Chapter No. : 1 Introduction to Java.
Chapter 1 Coding Introduction.
Advanced Programming Fall 2017.
CISC124 From Thursday: Course Web Site:
(Computer fundamental Lab)
Review of Previous Lesson
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 ACO101: Introduction to Computer Science

The History of Java Started out as a research project at Sun Microsystems in 1991 Code named “Green” Based on C and C++ Originally called “Oak” because its creator James Gosling had an oak tree outside his office window at Sun.

History of Java – part 2 They had to change the name from “Oak” to something else because it was discovered that there was already a language called “Oak”. A group of people at Sun went for coffee one day and someone suggested “Java” and it stuck. Between 1991 and 1993 the project faltered because Sun had anticipated that the smart consumer device market would grow faster than it did.

Java History – part 3 When the internet boomed in 1993 the project got a new life because people saw the potential to create dynamic content for the web. “Java” was officially announced in May 1995.

Religious discussion Java vs. C# James Gosling and Bill Joy (one of the founders of Sun Microsystems) called C# an "imitation" of Java; Gosling (originator of Java) further claimed that "[C# is] sort of Java with reliability, productivity and security deleted."

More religious debate Klaus Kreft and Angelika Langer (authors of a C++ streams book) stated in a blog post that "Java and C# are almost identical programming languages. Boring repetition that lacks innovation." Anders Hejlsberg (lead the C# team) has argued that C# is "not a Java clone" and is "much closer to C++" in its design.

Why do you care? Because you will have to decide where you are in the debate and that will inform your career path. cle_sues_google/ cle_sues_google/ mplaint_against_google.pdf mplaint_against_google.pdf

Technology is constantly moving forward And so you will move forward with it. I will not tell you what to think or how to be; I will only give you the information to decide for yourself.

Knowing Both They are so similar that – If you know Java then you pretty much know C# and knowing both will double your job opportunities. Programming is one of the professions that the more you know the more you earn.

Runtime environments Java Java Runtime Environment – Includes the JVM and Common Code Libraries JVM = Java Virtual Machine The JRE was originally designed to support interpreted execution with final compilation as an option. The Java compiler produces Java bytecode C# Common Language Runtime The CLR is designed to execute fully compiled code. The C# compiler produces Common Intermediate Language instructions.

Program execution Java bytecode is loaded by the Java runtime and either interpreted directly or compiled to machine instructions and then executed C# the runtime loads Common Intermediate Language code and compiles to machine instructions on the target architecture

Side bar: bytecode and CIL instructions A Java programmer does not need to be aware of or understand Java bytecode at all. However, "Understanding bytecode and what bytecode is likely to be generated by a Java compiler helps the Java programmer in the same way that knowledge of assembler helps the C or C++ programmer.“ – Peter Haggar IBM The same is true for CIL instructions and C#

We are not going that deep. If you are interested – here are some links; but this is Intro and you are not required to understand bytecode, CIL instructions or machine code on a deeper level. – /it-haggar_bytecode/ /it-haggar_bytecode/ –

Lets check to see if the JDK is installed Go to Start > Run > type “cmd” in the box to launch a command prompt – Type in the window (where the cursor is) java –version C:\Program Files\Java – Is there a folder named jdk1.6.0_21 click into the bin in that folder – C:\Program Files\Java\jdk1.6.0_21\bin – javac.exe is the compiler

To DIY you will need The Java SE Development Kit 6 (JDK 6) – downloads/index.html downloads/index.html – Read the installation instructions html html – Click on the Download JDK button I registered (you don’t have to) Pick your platform and click continue Click on the link provided to download the exe Save file, double click and run

Follow the installation wizard

Next

next

Close browsers

finish

This is optional

Hello world We havta do the tradition…. It would be just wrong to not have your first program be “Hello World” Open notepad (on a mac you can use simple text) and type this code…..

class myfirstjavaprog { public static void main(String args[]) { System.out.println("Hello World!"); }

Save as…. myfirstjavaprog.java

Bring up a command prompt Start > Run > cmd

Change the directory to the location of javac

Now send the location of your.java file to the compiler

Now go check to see if you have a.class file (you should)

Let’s run it – go to the location of the class (current working directory) and pass the name of the class to the Java runtime

Success!

Homework Is posted on the class portal