0% found this document useful (0 votes)
2 views30 pages

Java Programming Workshop

The document is a workshop presentation on Java programming, covering fundamentals, object-oriented programming (OOP), and data structures and algorithms (DSA). It includes basic concepts, data types, and practical exercises, along with an overview of Java's significance and usage across various devices. The content is structured with sections on Java fundamentals, OOP principles, and various programming concepts, aimed at educating participants on Java programming.

Uploaded by

saiyedshizain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views30 pages

Java Programming Workshop

The document is a workshop presentation on Java programming, covering fundamentals, object-oriented programming (OOP), and data structures and algorithms (DSA). It includes basic concepts, data types, and practical exercises, along with an overview of Java's significance and usage across various devices. The content is structured with sections on Java fundamentals, OOP principles, and various programming concepts, aimed at educating participants on Java programming.

Uploaded by

saiyedshizain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 30

Java

Programming
Workshop
// by Saiyed Shizain
Table of contents

01
Java
02
Fundamentals OOPS in Java

03
An Introduction to 04
DSA Practical exercise
0
1
Java
Fundamentials
// System.out.println(“Welcome to
Java”);
Why Java?

Strongly Automatic
Typed Powerful Collection
Memory
Framework
Management
>
3,000,000,0
00
Devices globally utilize Java
1.1 billion
Desktops have Java installed

3 billion
Mobile phones run Java

100%
of all Blu-ray players are equipped with
Java
Let’s learn
some Java
Basic Concepts

Variables,
Conditions & Collections &
Operators & Input & Output
Loops Arrays
Data Types
Class operations
Static void main(String[] args) {

int a=10; int sum=a+b;


int b=5; int subtract=a-b;
int
multiplication=a*b
;
int division =a/b;
System.out.println("The sum of " + a + " plus " + b + " equals " + sum);
System.out.println("Subtraction of " + a + " minus " + b + " equals " +
subtraction);
System.out.println("The multiplication of " + a + " by " + b + " is equal to " +
multiplication);
System.out.println("The division of " + a + " by " + b + " is equal to " + division);
Primitive Data Types
Data Type Size / Value Description

byte 1 byte, -128 to 127 Stores very small


numbers

short 2 bytes, -32,768 to 32,767 A bit longer than byte

int 4 bytes, -2 billion to 2 billion We’ll be using this most


times

long 8 bytes, 9 quintillion to 9 For storing large whole


quintillion numbers

float 4 bytes, fractional value upto 6-7 Stores decimal values


digits

double 8 bytes, fractional value upto 15 Double the size of float


digits

char 2 bytes, single Simple character


"Tell me and I forget, teach
me and I may remember,
involve me and I learn."
— Benjamin Franklin, founding
father of USA
0
2
OOPs in Java
// Object ob = new Object();
Introduction to OOPS
Inheritance Polymorphism
// Like a child inherits his // Different forms of a
parents properties, single entity or object
something similar can
happen in coding

Encapsulation Abstraction
// Like a capsule that // Keep some secrets to
holds multiple smaller yourself
entities in it
Access modifiers

Private Protected Public


// Accessible only // Accessible within // Accessible from
within the same the same package + anywhere.
class. subclasses.
Modifiers on some elements

Abstract Static
// Cannot be instantiated; // Belongs to the class, not
must be overridden in a instances; shared across objects
subclass

Final
// Prevents modification; applied to
variables, methods, and classes
A picture
always
reinforces
the concept
You can give a brief
description of the topic you
want to talk about here. For
example, if you want to talk
about Mercury, you can say that
it’s the smallest planet in the
entire Solar System
Brainstorming and idea generation
A Abstract I Identifier Q -

B Block J Java R Reference

C Class K Keyword S Sandbox

D Default L Lexical T Thread

E Enum M Method U Unicode

F Field N Native V/W Variable

G Generic O Object X/Y XML

H Hexadecimal P Package Z -
Sequence
Declare
Start variables Read data
Mercury is the closest Venus is the second Despite being red, Mars
planet to the Sun planet from the Sun is actually a cold place

Process Show End


Jupiter is the biggest Saturn is composed of Neptune is the farthest
planet of them all hydrogen and helium planet from the Sun
Classification

Sequence in Java

Arrays Collections Popular API


● Feature 1 ● Feature 1 ● Feature 1
● Feature 2 ● Feature 2 ● Feature 2
● Feature 3 ● Feature 3 ● Feature 3
● Feature 4 ● Feature 4 ● Feature 4

Mars is actually a Venus has high Mercury is the


very cold place temperatures smallest planet
Cause and effect
Abstract
Public The Moon is Earth’s only natural
satellite
Static
Modifier Neptune is the farthest planet from
s the Sun
Final
Protecte
d Saturn is composed of hydrogen and
helium
Synchronized
Despite being red, Mars is a cold
place
Question and answer

What are Java IDEs?


Is Mercury the closest planet to the Sun and the
smallest one in the Solar System? Note that it’s a
bit larger than the Moon

Eclipse and NetBeans


Venus has a beautiful name and is the second
planet from the Sun. It’s hot and has a poisonous
atmosphere
Timeline

Venus is the second Despite being red,


planet from the Sun Mars is a very cold
place
Project start Prototype

Data analysis Feedback


Mercury is the closest Jupiter is the biggest
planet to the Sun planet of them all
Parts and whole
What would happen if the part was
The whole object missing
Mercury is the closest Venus has a beautiful name and is the second
planet to the Sun and the planet from the Sun. It’s terribly hot, even hotter
smallest one in the entire than Mercury, and its atmosphere is extremely
Solar System poisonous

Parts of the object What’s the function of the part?


● Mercury is very Saturn is a gas giant and has several rings. It’s
small composed mostly of hydrogen and helium. It was
● Venus is very hot named after the Roman god of wealth and
● We all live on Earth agriculture
Evolution of the students
Venus
Venus is the second
planet from the Sun

Mercury
Mercury is the closest
planet to the Sun

Mars
Despite being red,
Mars is a very cold
place
Follow the link in the graph to modify its data and then paste the new one here. For more info, click here
Most used programming languages

25% 50% 75%


HTML Python Java
Mercury is the closest Venus has a beautiful Despite being red,
planet to the Sun and name and is the Mars is actually a cold
the smallest of them second planet from place. It’s full of iron
all the Sun oxide dust
Best centers

Venus
Venus is the second
planet from the Sun

Mercury
Mercury is the closest
planet to the Sun

Mars
Despite being red,
Mars is a very cold
place
Mockups
You can replace the
images on the screen with
your own work. Just right-
click on them and select
“Replace images”
Thanks!
Do you have any questions?
[email protected]
+34 654 321 432
yourwebsite.com

CREDITS: This presentation template was created by


Slidesgo, and includes icons by Flaticon, and infographics &
images by Freepik
Please keep this slide for attribution
Alternative resources
Here’s an assortment of alternative resources whose style fits the one of this
template:

Vectors
● Creative computer microchip background
Resources
Did you like the resources on this template? Get them for free at our other
websites:

Vectors
● Technology style brochure set

Photos
● Side view of man using smartphone
● Programming background with person working with codes on computer
● Side view of woman at home using headphones and tablet
● Medium shot man playing videogame
● Programming background with person working with codes on computer

You might also like