1
CHAPTER 1
Introduction to Java
Objectives
To understand what is an Object Oriented Programming language. Some information about Java programming language What makes the java language different to other languages What makes up Java – the files and where Java is installed on a computer Getting an idea of the different versions of Java How to create, compile and run a Java program at the command line - without the use of an IDE like NetBeans
Chapter 1- Intro to Java.docx v1 Jan 2010
P.Snape & S.Batsas & O.Alahakoon
page
1 / 10
Chapter
1
What is programming?
A computer is a machine. Humans need to provide instructions to computers to operate. Providing instructions to a computer is called “Programming”.
What is a programming language?
A programming language is an artificial language designed to communicate instructions to a machine, particularly a computer.
What is Object Oriented Programming?
Object Oriented Programming is a technique of programming where we use objects as the basic unit of manipulation.
What is Java?
Java is a computer programming language, a library of Classes called the API and the Java Virtual Machine that interprets the machine code. In essence Java is a platform. This means you can run Java programs without an operating system installed on your computer. The software engineers behind the Java development had one principle objective in mind; to create a language that can be compiled on one machine and run on any machine. The Java Virtual Machine makes this possible. Once a Java program is compiled into Byte Code (virtual machine code) it can then be interpreted on any computer architecture as long as the Java Virtual Machine is installed. It is intended to let application developers "write once, run anywhere". The most common computer architectures are:
UNIX INTEL MAC
Java Byte Code is not machine code understood by the CPU. It is an optimised set of instructions ready to be