Lesson 1 - Introduction to Object Oriented Programming Concepts _ Introduction to Java
Lesson 1 - Introduction to Object Oriented Programming Concepts _ Introduction to Java
Oriented Programming
Concepts
Topics to be covered
a. Procedural Oriented
Programming
b. Object Oriented programming
c. Principles of Object Oriented
Programming ->
i) Data Abstraction
ii) Encapsulation
iii) Polymorphism
iv) Inheritance
Recapitulation
As, you have already learnt about Java
Programming Language in std VIII, could you
please think about the answers for the
following?
1.What is a program?
2.What is a programming language?
3. Name some Programming languages.
4. What is a source code?
5. What is an object code?
A computer program is commonly defined as a set of
instructions to be followed on the computer to perform a
particular task.
b) Execution
The class files generated by the compiler are
independent of the machine or the OS, which
allows them to be run on any system. To run, the
main class file (the class that contains the method
main) is passed to the JVM and it converts the
byte code into the object code which can be
understood by that operating system.
JVM
(Java Virtual Machine)
A JVM is a virtual
machine that enables a
computer to run Java
programs as well as
programs written in
other languages that are
also compiled to Java
byte code.
Features of Java
Object Platform
Oriented Independent
Programming
Secured
Simple to
learn
Multi-
threaded
Important features of
Java
1) Java is an Object-Oriented programming language:
Java is a fully object-oriented programming language. It has all OOP
features such as Abstraction, Encapsulation, Inheritance and
Polymorphism
2) Java is Simple:
The Java programming language is easy to learn. Java code is easy to
read and write.
3) Java is Secure:
The Java platform is designed with security features built into the
language and runtime system such as static type-checking at
compile time and runtime checking (security manager), which let
you creating applications that can’t be invaded from outside.
4) Java is Platform Independent:
Java code is compiled into intermediate format
which can be executed on any systems for which
Java virtual machine is ported. That means you
can write a Java program once and run it on
Windows, Mac, Linux or Solaris without re-
compiling.
5) Java is Multi-threaded:
The Java platform is designed with multithreading
capabilities built into the language. This means
that we can build applications with many
concurrent threads of activity.