1. Fundamentals of programming (Java)
1. Fundamentals of programming (Java)
Fundamentals Of
Programming (Java)
Reference
Outline
What is a Program
A Brief History of Java
Advantages of Java
High Level vs Low Level programming
Languages
Compiler vs Interpreter
Understanding Compiler Errors
Programming Your First Java Application
What is a Program
In computing, a program is a specific set of ordered
operations for a computer to perform.
The program contains a one-at-a-time sequence of
instructions that the computer follows.
Typically, the program is put into a storage area
accessible to the computer.
The computer gets one instruction and performs it
and then gets the next instruction.
A Brief History of Java
The history of Java is very interesting. Java was
originally designed for interactive television, but it
was too advanced technology for the digital cable
television industry at the time. The history of java
starts with Green Team.
Java team members (also known as Green Team),
initiated this project to develop a language for digital
devices such as set-top boxes, televisions, etc.
However, it was suited for internet programming.
Later, Java technology was incorporated by Netscape.
A Brief History of Java
The principles for creating Java programming
were "Simple, Robust, Portable, Platform-
independent, Secured, High Performance,
Multithreaded, Architecture Neutral, Object-
Oriented, Interpreted and Dynamic".
Currently, Java is used in internet
programming, mobile devices, games, e-
business solutions, etc. There are given the
significant points that describe the history of
Java.
Advantages of Java
1. Java is easy to learn.
Java was designed to be easy to use and is therefore easy to
write, compile, debug, and learn than other programming
languages.
2. Java is object-oriented.
This allows you to create modular programs and reusable
code.
3. Java is platform-independent.
One of the most significant advantages of Java is its ability to
move easily from one computer system to another. The
ability to run the same program on many different systems is
crucial to World Wide Web software, and Java succeeds at
this by being platform-independent at both the source and
binary levels.
Advantages of Java (Cont.)
4. Java is distributed.
Java is designed to make distributed
computing easy with the networking capability that is inherently
integrated into it. Writing network programs in Java is like sending
and receiving data to and from a file.
5. Java is secure.
Java considers security as part of its design. The Java language,
compiler, interpreter, and runtime environment were each
developed with security in mind.
6. Java is robust.
Robust means reliability. Java puts a lot of emphasis on early
checking for possible errors, as Java compilers are able to detect
many problems that would first show up during execution time in
other languages.
Advantages of Java (Cont.)
7. Java is multithreaded.
Multithreaded is the capability for a program to perform several
tasks simultaneously within a program. In Java, multithreaded
programming has been smoothly integrated into it, while in other
languages, operating system-specific procedures have to be called
in order to enable multithreading.