Week 1
Week 1
Week 1
Introduction to Java
Java Background
Java was developed in 1991 by a team of engineers called the Green
Team led by James Gosling and released in 1995 by Sun
Microsystems. It was initially called oak after an oak tree that stood
outside his office. Java was originally designed to use in embedded
chips in various consumer electronic appliances such as toasters and
refrigerators. In 1995 its name was changed to Java because a
trademark search revealed that Oak was used by Oak Technology and
it was also redesigned for developing Web applications. All the Java
releases since 2010 is owned by Oracle because they acquire Sun
Microsystems in that year.
Computer Programming 2 1
Week 3-4 Introduction to Java
The first phase of a java program is writing your source code in a text
editor or IDE (Integrated Development Environment). The text editors
that can be used are notepad, vi, sublime, etc. and for the IDE are
NetBeans, Eclipse, BlueJ, etc. The written code should be saved with
the .java extension.
After creating the source file, you need to compile it using the javac
compiler. This process will produce a compiled file containing
bytecodes and with the extension name of .class. Normally the
compiler (other programming language like C, C++, etc.) should
produce object code (executable program) that is understandable by
the processor, however in Java the compiled object is a .class file
which contains bytecode that is not readable by your processor.
2
MODULE OF INSTRUCTION
Java Features
The main reason why they created Java was to deliver a portable and
secured programming language. In addition to these major features,
other Java features are the following:
1. Simple
2. Object-Oriented
3. Platform independent
4. Secured
5. Robust
6. Architecture neutral
7. Portable
8. Dynamic
9. High Performance
10. Multithreaded
11. Distributed
Simple
Computer Programming 2 3
Week 3-4 Introduction to Java
Object Oriented
Platform Independent
Code Security
4
MODULE OF INSTRUCTION
Robust
Architecture-neutral
Portable
Computer Programming 2 5
Week 3-4 Introduction to Java
Dynamic
High Performance
Multithreaded
Distributed
6
MODULE OF INSTRUCTION
LESSON SUMMARY:
Computer Programming 2 7