Lecture 1 - Introduction to Java Programming

Lecture 1 - Introduction to Java Programming - COMP17010...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
COMP17010 Object Oriented Programming 1 Andy Naftel (Lecturer – Semester 1) Lamb Building 1.27 ( [email protected] ) Lecture 1 Introduction to Java Programming Recommended Textbook • Java in Two Semesters (Second Edition), Q Charatan & A Kans, McGraw- Hill 2006, ISBN 0077108892 • Essential purchase for COMP17010 Introduction to OOP On-line Learning Resources z Course web pages: z http://webct.man.ac.uk z These pages contain: z Lecture slides z It is a good idea to annotate these during the lecture z Laboratory assessed exercises z Examples class slides z Supplementary material z links to further Java resources, information on installing Java & BlueJ on own PC, WebCT discussion forum, coursework & exam additional information, sample laboratory test, MCQs, past exam papers, etc. z Marks will be returned via Arcade (lab management system) Software • the set of instructions that tells a computer what to do is called a program ; software is the name given to a single program or a set of programs. application software is the name given to useful programs that a user might need. system software is the name given to special programs that help the computer to do its job. programming is the task of writing instructions for the computer; • these instructions have to be written in a special programming language. Software development • This is the process of – designing – coding – testing – debugging – documenting – maintaining & upgrading programs
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Compiling programs • modern programming languages like Java consist of instructions that look a bit like English; • the set of instructions written in a programming language is called the program code or source code . • these instructions have to be translated into binary instructions (i.e. 0's and 1's); • the language of the computer is often referred to as machine code ; • a special piece of system software called a compiler translates source code to machine code. Programming in Java • Java is platform-independent ; • Java can work within the World Wide Web of computers via browsers , such as Netscape and Internet Explorer ; • Java programs that run on the Web are called applets ; • inside a modern browser is a special program, called a Java Virtual Machine ( JVM ); • the JVM is able to run a Java program for the particular computer on which it is running. How can it do this? • Java compilers do not translate the program into machine code, but into special instructions called Java byte code ; • Java Byte Code (which still consists of 0's and 1's), contains instructions that are exactly the same irrespective of any computer; • Java Byte Code is universal , whereas machine code is specific to a particular type of computer; • the job of the JVM is to translate each instruction for the computer it is running on, before the instruction is performed.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/20/2008 for the course COMP 17011 taught by Professor Andynaftel during the Fall '07 term at University of Manchester.

Page1 / 9

Lecture 1 - Introduction to Java Programming - COMP17010...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online