You are on page 1of 14

Object Oriented Programming

with Java (MTCA13104)


Unit 1: Introduction To Java
What is Language?
❑ A language is a system of communication used by a particular
country or community.
❑ It is a structured system of communication used by humans, based
on speech and gesture (spoken language), sign or often writing.
❑ Both person should understand each other’s language.

Hello!
你好
Programming Language
❑ A programming language is a computer language that is used by
programmers (developers) to communicate with computers.
❑ It is a set of instructions written in a specific language to
perform a specific task.
❑ It allow us to give instructions to a computer in a language the
computer understands.
❑ 5000+ programming languages . E.g. C, C++, C#, Java, Python, PHP,
Pascal, etc.
Types of Programming Languages
1. Low-level programming language
❑ It is a machine-dependent (hardware specific) programming
language.
❑ It consists of a set of instructions that are either in the binary form (0
or 1) or in a symbolic and human-understandable mnemonics
(ADD,MOV,SUB).
❑ E.g. Machine level language, Assembly language, etc.

2. Middle-level programming language


❑ Middle-level programming language lies between the low-level and
high-level programming language.
❑ E.g. C,C++ etc.
3. High-level programming language
❑ It is closer to human languages than machine-level languages.
❑ It is easy to read, write and maintain as it is written in English like
words.
❑ A compiler is required to translate a high-level language into a
low-level language.
❑ E.g. Python, Java, PHP, C# etc.
Introduction to JAVA
❑ Java is an object-oriented, class-based, concurrent, secured and
general-purpose computer-programming language.
❑ It is intended to let application developers write once, and run
anywhere, meaning that compiled Java code can run on all platforms
that support Java without the need for recompilation.
❑ Java is known for its simplicity, robustness, and security features,
making it a popular choice for enterprise-level applications.
History
❑ Java was originally developed by James Gosling at Sun
Microsystems and released in 1995.
❑ Java was initially named as Oak language and renamed to JAVA in
1995.
Why 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 has a large demand in the current job market.
❑ It is easy to learn and simple to use.
❑ It is open-source and free.
❑ It is secure, fast and powerful.
❑ Java is an object oriented language which gives a clear structure to
programs and allows code to be reused, lowering development costs.
Advantages
Java is easy to write, compile, learn, and debug as compared to other
programming languages.
It provides an ability to run the same program on different platforms.
It is a highly secured programming language because in java, there is
no concept of explicit pointers.
It is capable of performing multiple tasks at the same time.
Features of Java
1. Object-Oriented: Java is an object-oriented programming language.
Everything in Java is an object.
2. Simple: Java syntax is based on C/C++.
3. Secured: Every time when a user compiles the Java program, the Java
compiler creates a class file with Bytecode, which are tested by the JVM
at the time of program execution for viruses.
4. Platform independent: Java code can be executed on multiple
platforms.
5. Robust: It uses strong memory management.
6. Portable : Java is portable because it facilitates you to carry the Java
bytecode to any platform.
7. Architecture Neutral: Java compiler generates an architecture-neutral
object file format, which makes the compiled code executable on many
processors, with the presence of Java runtime system.
8. Dynamic: Java has ability to adapt to an evolving environment which
supports dynamic memory allocation due to which memory wastage is
reduced and performance of the application is increased.
9. Interpreted: Java is compiled to bytecodes, which are interpreted by
a Java run-time environment.
10. High Performance: Java achieves high performance through the use
of bytecode which can be easily translated into native machine code.
11. Multithreaded: A thread is like a separate program, executing
concurrently. We can write Java programs that deal with many tasks at
once by defining multiple threads.
12. Distributed: Java provides a feature which helps to create distributed
applications.
THANK YOU

You might also like