Java Beginners
A Session on
• B Y R A H U L N A V E E N
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
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
Let's Begin...
Working:
Rahul Naveen
Code Structure:
Rahul Naveen
JVM v/s JRE v/s JDK:
Rahul Naveen
Java Virtual Machine tasks
are:
• Loads code
• Verifies code
• Executes code
• Provides runtime
environment
Java Runtime Environment(JRE):
Rahul Naveen
The Java Runtime Environment is a set of software tools that are used
for developing Java applications.
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.
Data Types:
Rahul Naveen
Conditional Statement:
Rahul Naveen
Java provides 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
OOPs (Object-Oriented Programming System)
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
class Employee{
float salary=40000;
}
class Programmer 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.
Use of Inheritance?
Rahul Naveen
• Code Reusability
• Polymorphism
• Method Overriding (so runtime polymorphism can be
achieved).
Types of Inheritance:
Rahul Naveen
Note: Multiple inheritance is not supported in Java through class.
Let's learn with coding example:
Rahul Naveen
Single level
Let's learn with coding example:
Rahul Naveen
Multilevel
Thank You

A session on Java Programming for beginners

  • 1.
    Java Beginners A Sessionon • B Y R A H U L N A V E E N
  • 2.
    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
  • 4.
  • 5.
  • 6.
    JVM v/s JREv/s JDK: Rahul Naveen Java Virtual Machine tasks are: • Loads code • Verifies code • Executes code • Provides runtime environment
  • 7.
    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.
  • 9.
  • 10.
    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).
  • 14.
    Types of Inheritance: RahulNaveen Note: Multiple inheritance is not supported in Java through class.
  • 15.
    Let's learn withcoding example: Rahul Naveen Single level
  • 16.
    Let's learn withcoding example: Rahul Naveen Multilevel
  • 17.