This brief Java programming presentation covers essential concepts for beginners and intermediate learners. Created by Rahul Naveen
I created this presentation when I visited a class of engineering students to teach them basic about Java.
Why Java?
1.Works Everywhere(WORA)
2.Object Oriented Programming(OOP)
3.Scalable and Good community support
4.Runs in 3+ billion devices
5.Rich Standard Library
LET'S LEARN MORE..
Rahul Naveen
3.
More about Java
•Java was developed by Sun Microsystems (now owned by Oracle
Corporation) and released in 1995.
• It's widely adopted in various domains, including web development,
mobile app development, enterprise software, scientific applications,
and more.
• Java is platform independence, which means that Java programs can
run on any operating system or platform that supports the Java Virtual
Machine (JVM).
Rahul Naveen
Java Runtime Environment(JRE):
RahulNaveen
The Java Runtime Environment is a set of software tools that are used
for developing Java applications.
8.
Java Development Kit(JDK):
Rahul Naveen
JDK is an acronym for Java Development Kit. The Java Development Kit
(JDK) is a software development environment which is used to develop
Java applications.
Conditional Statement:
Rahul Naveen
Javaprovides three types of control flow statement:
1.Decision-Making statements
- if statements
- switch statement
2. Loop statements
-do while loop
-while loop
-for loop
-for-each loop
3. Jump statements
-break statement
-continue statement
11.
OOPs (Object-Oriented ProgrammingSystem)
Rahul Naveen
Object-Oriented Programming is a methodology or paradigm to design a program using
classes and objects. It simplifies software development and maintenance by providing
some concepts:
These are the main pillars of the
OOPs concept:
• Inheritance
• Polymorphism
• Abstraction
• Encapsulation
12.
class Employee{
float salary=40000;
}
classProgrammer extends Employee{
int bonus=10000;
public static void main(String args[]){
Programmer p=new Programmer();
System.out.println("Programmer salary is:"+p.salary);
System.out.println("Bonus of Programmer is:"+p.bonus);
}
}
Inheritance
Rahul Naveen
It is a mechanism in which one object acquires all the properties and
behaviors of a parent object.
13.
Use of Inheritance?
RahulNaveen
• Code Reusability
• Polymorphism
• Method Overriding (so runtime polymorphism can be
achieved).