Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
20 views

Intriducation To Java Programming Language

1. Java is a popular object-oriented programming language created in 1995 that runs on billions of devices. It is influenced by C and C++. 2. Key features of Java include being simple and robust, supporting object-oriented programming, security, case sensitivity, and platform independence. Java code can run on any device with a Java Virtual Machine. 3. There are two types of Java programs - application programs which are standalone, and applet programs which are embedded in web pages. Object-oriented programming principles like encapsulation, inheritance, polymorphism and abstraction aim to make Java code more readable and reusable.

Uploaded by

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

Intriducation To Java Programming Language

1. Java is a popular object-oriented programming language created in 1995 that runs on billions of devices. It is influenced by C and C++. 2. Key features of Java include being simple and robust, supporting object-oriented programming, security, case sensitivity, and platform independence. Java code can run on any device with a Java Virtual Machine. 3. There are two types of Java programs - application programs which are standalone, and applet programs which are embedded in web pages. Object-oriented programming principles like encapsulation, inheritance, polymorphism and abstraction aim to make Java code more readable and reusable.

Uploaded by

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

INTRIDUCATION TO

JAVA
PROGRAMMING
LANGUAGE

ICT TEACHER MR AHMED


What is java?
Java is a popular programming language, created in 1995. It is
owned by Oracle, and more than 3 billion devices run Java,
Java is high level widely used object-oriented programming
language and software platform that runs on billions of devices,
JAVA INTRO including notebook computers, mobile devices, gaming
consoles, medical devices and many others. The rules and
syntax of Java are based on the C and C++ languages.
IMPORTANT FEATURES OF JAVA

• Simple & robust language


• Object oriented programming (OOP)
• Secure
• Case sensitive
• Platform independent
● Java is a simple programming language and easy to
understand because it does not contain complexities
that exist in prior programming languages. Java
contains the same syntax as C, and C++. 1. Simple &
robust
● Java is an object-oriented programming language.
Everything in Java is an object. Object-oriented means
we organize our software as a combination of different
types of objects that incorporate both data and
behavior. Object-oriented programming (OOPs) is a
2. (OOP)
methodology that simplifies software development and
maintenance by providing some rules..
● Java is best known for its security. With Java, we can
develop virus-free systems. Java language provides these
securities by default. Some security can also be provided
by an application developer explicitly through SSL, JAAS,
Cryptography, etc.
3. Secure

● Java is case-sensitive because it uses a C-style syntax. In


most programming languages, case sensitivity is the norm.
4. Case Case-sensitive is useful because it lets you infer what a
sensitive name means based on its case. In Java code, upper letters
and lower letters both are represented differently at the
lowest level..
● The design objective of javasoft people is to develop a
language that must work on any platform. Here platform
means a type of operating system and hardware
technology. Java allows programmers to write their
5. Platform program on any machine with any configuration and to
execute it on any other machine having different
independent configurations. In Java, Java source code is compiled to
bytecode and this bytecode is not bound to any platform. In
fact, this bytecode is only understandable by the Java
Virtual Machine which is installed in our system. What I
meant to say is that every operating system has its own
version of JVM.
Types of java programs

1. Application program : Stand-alone applications are those java programs that can
be developed and executed on a stand-alone local computer.(which we can
execute from the command prompt). The stand-alone application can be executed
without the browsers (Internet connectivity).A java program is not embedded within
HTML or any other language and can Stand on its own. It is referred to as
Application program.

2. Applet Programs : are small java programs developed for internet applications.
Applets are embedded in HTML documents. Applet programs can be run using the
applet viewer or web browser. For example, when you use java to enhance a
WWW page, the java code is embedded within HTML code. It is called as Applet.
● Object-Oriented Programming System is a paradigm that
provides many concepts, OOps in java is to improve code
OOPS in readability and reusability by defining a Java program
efficiently. The main principles of object-oriented
Java programming are abstraction, encapsulation, inheritance,
and polymorphism. These concepts aim to implement
real-world entities in programs.
● Encapsulation.
● Inheritance. Properties
● Polymorphism. of OOPS
● Abstraction.
● Encapsulation in Java is the process by which data (variables)
and the code that acts upon them (methods) are integrated as a
single unit.
Encapsulatio
n
● Inheritance is one of the key features of OOP that allows us to
create a new class from an existing class. The new class that is
created is known as subclass (child or derived class) and the
Inheritance existing class from where the child class is derived is known as
superclass (parent or base class).
● Polymorphism is the method in an object-oriented programming
language that performs different things as per the object's class,
which calls it. With Polymorphism, a message is sent to multiple
Polymorphis class objects, and every object responds appropriately
m according to the properties of the class.

● Abstraction is a process of hiding the implementation details


from the user, only the functionality will be provided to the user.
Abstraction In other words, the user will have the information on what the
object does instead of how it does it.
A Java IDE is an integrated development environment for
programming in Java; many also provide functionality for other
languages, IDEs typically provide a code editor, a compiler or
interpreter and a debugger that the developer accesses through a
unified graphical user interface (GUI).

(IDE)
INTEGRATED
DEVELOPMENT
ENVIRONMENT
All programming languages are a means to communicate with
machines. Machine hardware only responds to electronic
communication. High-level programming languages like Java
act as a bridge between human language and hardware
language. When natural programming languages were first
developed, they fell into two broad categories, depending on
how they communicated with the underlying hardware.

Compilers: The complete program is written in natural


English-like syntax with compilers, and the language then
compiles (or translates) the entire code into machine code. The Explanation
compiled code is then run on the hardware.
Interpreters: With interpreters, every high-level code statement
of Java code
is interpreted into machine code on the fly. Written statements
are run immediately by the hardware before looking at the next
statement
End of Java code

You might also like