3. Overview
Java is a programming language originally
developed by Sun Micro System and released in
1995.
Programming Languages:
A vocabulary and set of grammatical rules
(syntax) for instructing a computer to perform
specific tasks.
• Machine Language
• Assembly Language
• High level Language
4. It is the lowest-level programming language.
Machine languages are the only languages
understood by computers.
For example, to add two numbers, you might
write an instruction in binary like this:
1101101010011010
5. It implements a symbolic representation of
the numeric machine codes and other
constants needed to program a particular
CPU architecture.
Assembly Program
to add two
numbers:
name "add"
mov al, 5
mov bl, 10
add bl, al
; bin=00000101b
; hex=0ah or
bin=00001010b
; 5 + 10 = 15 (decimal)
or
hex=0fh or
bin=00001111b
6. High-level languages allow us to write computer
code using instructions resembling everyday
spoken language (for example: print, if, while)
which are then translated into machine
language to be executed.
Examples :
• ADA • COBOL
• C • C++
• JAVA • BASIC
• PYTHON • PASCAL
7. Compiler
A compiler translates the entire source
code into a machine-code file.
Interpreter
An interpreter reads one statement from
the source code, translates it to the
machine code or virtual machine code,
and then executes it.
8. Overview of Java
Java is an object oriented programming
language originally developed by Sun Micro
System and released in 1995.
Java was originally by James Gosling at Sun
Microsystems (which has since merge in Oracle
Corporation)
Java programs are platform independent which
means they can be run on any operating system.
Java codes that run on one platform does not
need to recompile to run on another platform,
it’s called “write once run anywhere”.
Continued…
9. Java is a high level language like C,
C++, and Visual Basic.
It took 18 months to develop the first
working version.
Initially called “Oak”, a tree; renamed
as “Java”, a cup of coffee in 1995.
Byte code is a highly optimized set of
instructions designed to be executed by
the Java run-time system, called as
Java Virtual Machine (JVM).
JVM is an interpreter for byte code.
10.
11.
12. Object Oriented
Java is an object oriented programming language
which follows the concepts of oop’s.
Platform Independent
Java application programs written on one
operating system can be able to run on any
platform. So the java is platform independent.
Simple
Java syntax is similar to c and c++ and it follow the
oop’s concepts so it is easy to learn.
Secure
Java’s securing feature it enable to develop virus
free, tamper free (software which is not modify
by attacker). Continued…
13. Portable
We may carry the java byte code to any platform.
Robust
Robust simply means strong. Java uses strong
memory management.
Multi Threaded
A thread is like a separate program, executing
concurrently.
Interpreted
Java is a compiled programming language, but
rather than compile straight to executable machine
code, it compiles to an intermediate binary form
called JVM byte code.
High Performance
Java is faster than traditional interpretation.
14. Different Editions of Java Technology
Java SE
Java Standard Edition provides tools and API’s that can
use to create server application, desktop application and
even applets.
Java EE
Java Enterprise Edition helps in web application service,
component model and enterprise class service oriented
architecture.
Java ME
Java Micro Edition or JME is use for the development of
software for devices like mobile phones, PDA’s, TV set-top
box, game programming.