Lecture 1 - Introduction to Java Programming

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

Info icon This 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
Image of page 1

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

View Full Document Right 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.
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern