0% found this document useful (0 votes)
202 views17 pages

Revision of Class IX Syllabus

1. A computer program is a collection of instructions that can be executed by a computer to perform tasks. Programming languages like Java are used to write programs. 2. Java is a popular programming language used for mobile apps, desktop apps, web apps, servers, games and more. It works across different platforms and has a huge community of developers. 3. Object-oriented programming concepts like abstraction, encapsulation, inheritance and polymorphism aim to make programs more organized and reusable by modeling real-world entities as objects that can interact through methods. These concepts form the basis for object-oriented languages like Java.

Uploaded by

Shailendra Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
202 views17 pages

Revision of Class IX Syllabus

1. A computer program is a collection of instructions that can be executed by a computer to perform tasks. Programming languages like Java are used to write programs. 2. Java is a popular programming language used for mobile apps, desktop apps, web apps, servers, games and more. It works across different platforms and has a huge community of developers. 3. Object-oriented programming concepts like abstraction, encapsulation, inheritance and polymorphism aim to make programs more organized and reusable by modeling real-world entities as objects that can interact through methods. These concepts form the basis for object-oriented languages like Java.

Uploaded by

Shailendra Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 17

What is Computer Program/

method/function
A computer program is a collection of
instructions that can be executed by
a computer to perform a specific task.
Most computer devices
require programs to function properly.
A computer program is usually written
by a computer programmer in
a programming language.
What is Java?
Java is a popular programming language
It is owned by Oracle, and more than 3 billion devices
run Java.
It is used for:
Mobile applications (specially Android apps)
Desktop applications
Web applications
Web servers and application servers
Games
Database connection
And much, much more!
Why Use Java?
Java works on different platforms (Windows, Mac,
Linux, Raspberry Pi, etc.)
It is one of the most popular programming language in
the world
It is easy to learn and simple to use
It is open-source and free
It is secure, fast and powerful
It has a huge community support (millions of developers)
Java is an object oriented language which gives a clear
structure to programs and allows code to be reused,
lowering development costs
Revision of class IX syllabus
Basic concepts of Java programming
40% questions may be asked in Board Examination from revision of class IX

1.Introduction to object oriented


programming concepts
2.Elementry concept of object and
classes
3. Values and Data Types
Revision of class IX syllabus
4. Operators in Java
5. Input in Java
6. Mathematical Library Methods
7.Conditional Constructs in Java
8.Iterative Constructs in Java
9. Nested Loops
Object Oriented Programming Concepts
Object-oriented programming aims to
implement real-world entities like
inheritance, hiding, polymorphism etc
in programming. The main aim
of OOP is to bind together the data and
the functions that operate on them so that
no other part of the code can access this
data except that function.
Objects and Classes
Class -In object-oriented programming,
a class is a blueprint for creating objects (a
particular data structure), providing initial
values for state (member variables or attributes),
and implementations of behavior (member
functions or methods). ... The class is a blueprint
that defines a nature of a future object.
Objects and Classes
Object-In Object-oriented programming,
an object is an instance of a Class. Objects are an
abstraction. They hold both data, and ways to
manipulate the data.
a class describes the contents of the objects that
belong to it: it describes an aggregate of data
fields (called instance variables), and defines the
operations (called methods). object: an object is
an element (or instance) of a class; objects have
the behaviors of their class.
Objects and Classes
Object − Everything in Java is associated
with classes and objects, along with its
attributes (states)and methods (behaviors).
For example: in real life, a car is an
object. The car has attributes, such as
weight and color, and methods, such as
drive and brake.
A Class is like an object constructor, or a
"blueprint" for creating objects.
An object is an instance of a class. Class
− A class can be defined as a
template/blueprint that describes the
behavior/state that the object of its type
support.
Object - Person
Object oriented programming Principles
The four principles of object-oriented
programming are 
1. Abstraction
2.Encapsulation
3.Inheritance,
4. polymorphism. 
Abstraction
Data abstraction is the process of hiding certain
details and showing only essential information to
the user.

 Real life example of Abstraction is ATM


Machine; All are performing operations on the
ATM machine like cash withdrawal, money
transfer, retrieve mini-statement…etc. but we
can't know internal details about ATM. Note:
Data abstraction can be used to provide security
for the data from the unauthorized methods.
Encapsulation
Encapsulation in Java. ... Every Java class
is an example of encapsulation because we
write everything within the class only that
binds variables and methods together and
hides their complexity from other classes.
Another example of encapsulation is a
capsule. Basically,
capsule encapsulate several combinations
of medicine 
Inheritance
The technique of creating a new class by
using an existing class functionality is
called inheritance. In other words,
Inheritance in Java is a process where a
child class acquires all the properties and
behaviors of the parent class. The existing
class is called parent class and the new
class is called child class.
Advantage- Reusability of code.
Polymorphism
Polymorphism is the ability of an object
to take on many forms.
Real life example of polymorphism: A
person at the same time can have different
characteristic. Like a man at the same
time is a father, a husband, an employee.
So the same person posses different
behaviour in different situations. This is
called polymorphism.
Next class -Tokens

Reserved Keywords
Identifiers
Literals
Operators
Separators

You might also like