0% found this document useful (0 votes)
2 views

1.Introduction to java

java
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

1.Introduction to java

java
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Concept-1 : WHY JAVA ?

1. Simple and Easy.

2. Platform Independent Language.

3.Automatic garbage collector.

4. It is secure.

5. It is Object Oriented.

To overcome the drawbacks of C/C++ java was introduced.

Difference between C/C++ and Java

C/C++ Java

 Not flexible Flexible


 Platform dependant Platform independent
 Does not provide security Provides security
 Does not provide automatic Provides automatic
garbage collector garbage collector
 Does not support multithreading Supports multithreading

Concept - 2 : COMPUTER

Computer :-
1. It is a Machine/System which is used to perform a Specific Task given by a User/Human.

2. A Computer can only understand the Electric Signals like High-Voltage(1) & Low-Voltage(0).

3. The Electric signals are known as 0,1 which are in Binary.

4. While giving Instructions to the Computer be Specific like What,Where,..etc.

Concept-3 : WHAT IS A PROGRAMMING LANGUAGE ?

It is a medium which is used to communicate with the computer to perform some specific task is
known as a programming language.

OR

A language which is used to write a program and perform some specific task is known as
Programming language.

Examples : Java,C/C++,Python
Concept-4: LEVELS OF PROGRAMMING LANGUAGE ?

 Low level language/Machine level language/Binary language


 Assembly level language
 High level language

 LOW LEVEL LANGUAGE

• LLL is a Language which is readable and understandable by only machines.


• It is called low level language because it is low in readability and understand ability
for humans.
• It is also called machine language because it is readable and understandable by
machines.
• This language is called binary language because it can accept only two characters i.e
0 and 1

Eg: 100001111111111000000000000001111111

Drawback
This language is difficult for humans to read and understand , only machines can understand

 ASSEMBLY LEVEL LANGUAGE

• To overcome the drawback of Low level language we go for Assembly level language
• ALL consists of microcontroller instruction sets called MNEMONICS to perform
specific task.
• ALL is a Language which is readable and understandable by only humans.
• Now you can understand but which language can the machines understand ? BINARY
• So you need a translator to convert ALL to LLL. The translator used here is an
assembler.

ASSEMBLER

• Assembler is a software used to convert Assembly Level Language into Low Level
Language.

ADD

SUB MNEMONICS

MUL Pre-defined
instruction sets
DIV

MOV
ALL LLL
ASSEMBLER

It is understandable It is understandable
by humans by machines

DRAWBACKS

• It contains very few instruction sets and cannot perform complex functions like Simple
interest , Compound interest etc.

 HIGH LEVEL LANGUAGE

• To overcome the drawback of ALL, we go for HLL


• Language which is readable and understandable by Humans.
• Now humans can understand this language
• What about my computer? It can understand only BINARY or LLL
• So, we need a translator to convert HLL to LLL
• Who is the translator here? COMPILER

COMPILER

• Compiler is the software which converts HLL TO LLL

HLL LLL

COMPILER

It is understandable It is understandable
by humans by machines
Concept - 5 : What is Java ?

Java is a High Level Programming language.

PROGRAMMING LANGUAGE

What is a language ?
It is a medium of communication.
Which language do you use to communicate with your friends, parents, teacher etc ?
English, Kannada,Hindi etc

Oh! Now I want to communicate with my computer ? I want to ask the computer to add 2
numbers.
Will I talk in English,Kannada,Hindi ?No computer will not understand.

Programming
Language

THE LANGUAGE WHICH IS USED TO COMMUNICATE WITH THE COMPUTER IS CALLED AS


PROGRAMMING LANGUAGE.

What is program ?

Can computer perform any task on it’s own ?NO

Program is a set of instructions given to perform a specific task

WHAT IS JAVA USED FOR ?

 Java is used in Desktop GUI Applications.

 It is used in Web Applications.

 It is also used in Mobile Applications.

 It is used in web applications

 It is used in Gamming, Robotics etc.

You might also like