You are on page 1of 6

Types of Languages

21 December 2020 19:41

Types of programming languages


1. High-level Language
Language near to the user and far from the computer , i.e can be easily understood by humans
2. Low-level language
Language near to the computer and far from the computer , i.e can't be easily understood by humans

They can be also classified as


1. Procedural Programming Language
A sequence of statement is followed which leads to the result.
2. Functional Programming Language
They are primary focused on functions (a block of code to perform some task)
3. Object-Oriented Language
These treats everthing as an objects ( a entity with some data and functions)

Notes Class X Page 1


What are classes and Objects ?
21 December 2020 23:46

Java is an Object Oriented Language!


So what actually are objects ?

For now , objects can be considered as an entity with some data and some certain actions
to be performed on data !
Objects are blueprint of Class !
i.e class is the layout of an object !

Classes :-
It is the entity that binds the data and functions performed on data in a single
independent entity !

The data of the class is called as member data


The functions of the class are called as member functions

Objects:-
They are the real entities and are exact copy of the class .It is through objects that we
manipulate the data/functions of the class.

More will be discussed on classes and objects later !

Notes Class X Page 2


Feature of OOP's
22 December 2020 00:04

The main features of OOP's are


1.Encapsulation
2.Abstraction
3.Inheritence
4.Polymorphism

1.Encapsulation
The binding and wrapping up of data and the function performed on data in a single unit called class is
known as encapsulation.
It is enabled by the keyword 'class'

2.Abstraction
The act of representing only essential features without including the background detials

3.Inheritence
When properties of 1 class are taken (inherited) from another class

The class that takes the properties are called as child/derived/sub - class
The class that gives the properties are called as parent/base/super - class

4.Polymorphism
Single entity, many forms.
One function behaves differently for different objects

Notes Class X Page 3


Compiler vs Interpreter
22 December 2020 00:14

Compiler
It executes the whole program at once
Interpreter
It executes the whole program line by line

Flow of code in Java

Java has 2 compilers : javac and jit


Java has 1 Interpreter :- JVM

Notes Class X Page 4


Java Compiler || JVM
22 December 2020 00:19

Java has 2 compiler


1.javac
2.jit
Java Byte Code
javac It is a machine independent code and can
It converts the whole program to byte code at once be termed as the machine instructions for
the JVM(Java virtual machine)
jit(Just in time) It can be in simple terms termed as
It compiles the most frequently used commands only once and hence improving the binary code in 0/1 form and thus can be
efficiency of the program. converted by the JVM from the source code
that we write and thus making it readable
After javac and jit have compiled the program , the code can be send to across any device and then through JVM can be by every device in the world .
executed on any device

JVM(Java Virtual Machine)


The programs written in Java are first compiled to byte
code and then are interpreted by a special java interpreter
that is unique for each machine/platform , this is known as
Java Virtual Machine.

Notes Class X Page 5


Characterstics of Java
22 December 2020 00:32

Types of Java Program

Multi-threading:-
Program is partitioned into modules which reduces the complexity of program
and creates a well defined boundey for the programs.

Secure
There is no direct access to the ram , in between lies the JVM

Typed-language
Each variable is specified with the type of data it will hold

Notes Class X Page 6

You might also like