SlideShare a Scribd company logo
Welcome 
To 
Introduction to 
Java 
Programming
Meet Your Instructor 
That’s me
Who Should Drink JAVA? 
Have you done some programming? 
Do you want to learn Java? 
Do you prefer stimulating dinner conversations 
over coffee to dry, dull, technical lectures? 
Do you need this course to graduate? 
IDC3931 © PIC
Who Drinks JAVA? 
IDC3931 © PIC
What Is A Computer? 
A computer is something that takes in information 
(input), processes it according to a set of 
instructions (program), and produces a result 
(output). 
Computers communicate through a binary 
alphabet. The letters in this alphabet are ‘0’ and 
‘1’. Everything else is made out of these ‘letters’ 
which are called bits. 
Bits are represented in a computer by electrical 
signals: low voltage would mean a ‘0’ and higher 
voltage a ‘1’. Eight bits gathered together form 
one byte. 
IDC3931 © PIC
What Is JAVA? 
Java is a free, open-source, Object Oriented 
Programming (OOP) language – everything is 
contained inside classes and objects. 
Java is über portable – it can run on any 
machine with a Java Virtual Machine (JVM) 
installed. 
No matter what computer you have, you can 
write the same Java programs. 
IDC3931 © PIC
How WE use Java 
Sourc 
e 
Code 
Compiler 
Java 
bytecod 
e 
V 
i 
r 
t 
u 
a 
l 
M 
a 
c 
h 
i 
n 
e 
s
How WE use Java 
Source Code 
Compiler 
Virtual Machines 
Java bytecode 
IDC3931 © PIC
Code Structure in Java 
source 
code 
class 
file 
method 
1statement 
method 
2statement 
statement
What goes in the source 
file? 
A source file (with the .java extension) 
holds one class definition. The class 
represents a piece of your program, 
although a very tiny application might 
need just a single class. The class must 
go within a pair of 
curly braces 
public class Bicycle { 
} 
clas 
s 
The source file MUST have the same 
name as the class. For example, the 
Bicycle class my be stored in the 
Bicycle.java file. 
A class is the blueprint from 
which individual objects are 
created. Think of a bicycle…
What goes in a class? 
A class has one or more methods. In 
the Bicycle class, the pedal method will 
hold instructions for how the Bicycle 
should pedal. Your methods must be 
declared inside a class (in other words, 
within the 
curly braces 
public class Bicycle{ 
void pedal( ) { 
} 
} 
metho 
d 
of the class). 
A bicycle might have some 
methods such as: speedup(), 
break(), gear(), direction()…
What goes in a method? 
Within the 
curly braces public class Dog { 
void bark ( ) { 
statement1; 
statement2; 
statement3; 
} 
} 
statemen 
ts 
of a method, write your instructions for 
how that method should be performed. 
Method code is basically a set of 
statements, and for now you can think 
of a function or procedure. 
Bicycle{ 
pedal( ) { 
statement1; 
statement2; 
statement3; 
What are you 
staring at?
One Blueprint Can Be Used To 
Help Build Different 
Objects 
Shape 
rotate ( ) 
playSound 
( ) 
Squar 
e Triangl 
e 
Circle 
Amoeba 
This is called 
inheritance
EVERYTHING 
is made from OBJECTS 
Object 
equals() 
getClass() 
hashCode() 
toString() 
Shape 
rotate() 
playSound() 
Circle 
doSomething() 
This is the Object class 
from which ALL other 
objects are created.
What You Will Get Out Of 
Learning and Using JAVA! 
A thorough understanding of Object Oriented 
Programming. 
Learn a language that can be run on any platform. 
Build your programming skills and confidence. 
Learn how to work and program in groups. 
Develop Graphical User Interfaces. 
If you can make it through the day 
without programming, you haven’t tried 
JAVA!
Where To Start 
Setup Eclipse Classic 3.6 
Write your first Java program

More Related Content

What's hot

Introduction to oop
Introduction to oopIntroduction to oop
Introduction to oop
colleges
 
Object Oriented Programing JAVA presentaion
Object Oriented Programing JAVA presentaionObject Oriented Programing JAVA presentaion
Object Oriented Programing JAVA presentaion
Pritom Chaki
 
Java Object Oriented Programming
Java Object Oriented Programming Java Object Oriented Programming
Java Object Oriented Programming
University of Potsdam
 
Oops ppt
Oops pptOops ppt
Oops ppt
abhayjuneja
 
Course outline [csc241 object oriented programming]
Course outline [csc241 object oriented programming]Course outline [csc241 object oriented programming]
Course outline [csc241 object oriented programming]
Asfand Hassan
 
Oops concepts || Object Oriented Programming Concepts in Java
Oops concepts || Object Oriented Programming Concepts in JavaOops concepts || Object Oriented Programming Concepts in Java
Oops concepts || Object Oriented Programming Concepts in Java
Madishetty Prathibha
 
Object oriented concepts with java
Object oriented concepts with javaObject oriented concepts with java
Object oriented concepts with java
ishmecse13
 
Core java lessons
Core java lessonsCore java lessons
Core java lessons
vivek shah
 
Cs8392 oops 5 units notes
Cs8392 oops 5 units notes Cs8392 oops 5 units notes
Cs8392 oops 5 units notes
Narayanan sockalinganathan
 
Core java programming tutorial - Brainsmartlabs
Core java programming tutorial - BrainsmartlabsCore java programming tutorial - Brainsmartlabs
Core java programming tutorial - Brainsmartlabs
brainsmartlabsedu
 
Java features
Java  features Java  features
Java features
Madishetty Prathibha
 
JAVA Object Oriented Programming (OOP)
JAVA Object Oriented Programming (OOP)JAVA Object Oriented Programming (OOP)
JAVA Object Oriented Programming (OOP)
Prof. Erwin Globio
 
Introduction of java
Introduction  of javaIntroduction  of java
Introduction of java
Madishetty Prathibha
 
Std 12 computer chapter 6 object oriented concepts (part 1)
Std 12 computer chapter 6 object oriented concepts (part 1)Std 12 computer chapter 6 object oriented concepts (part 1)
Std 12 computer chapter 6 object oriented concepts (part 1)
Nuzhat Memon
 
Core java
Core javaCore java
Core java
Shivaraj R
 
Practical OOP In Java
Practical OOP In JavaPractical OOP In Java
Practical OOP In Java
wiradikusuma
 
Object oriented programming (oop) cs304 power point slides lecture 01
Object oriented programming (oop)   cs304 power point slides lecture 01Object oriented programming (oop)   cs304 power point slides lecture 01
Object oriented programming (oop) cs304 power point slides lecture 01
Adil Kakakhel
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
Sujit Majety
 
Introduction to oop
Introduction to oopIntroduction to oop
Introduction to oop
gayathridevprasad
 
Basic Java Programming
Basic Java ProgrammingBasic Java Programming
Basic Java Programming
Math-Circle
 

What's hot (20)

Introduction to oop
Introduction to oopIntroduction to oop
Introduction to oop
 
Object Oriented Programing JAVA presentaion
Object Oriented Programing JAVA presentaionObject Oriented Programing JAVA presentaion
Object Oriented Programing JAVA presentaion
 
Java Object Oriented Programming
Java Object Oriented Programming Java Object Oriented Programming
Java Object Oriented Programming
 
Oops ppt
Oops pptOops ppt
Oops ppt
 
Course outline [csc241 object oriented programming]
Course outline [csc241 object oriented programming]Course outline [csc241 object oriented programming]
Course outline [csc241 object oriented programming]
 
Oops concepts || Object Oriented Programming Concepts in Java
Oops concepts || Object Oriented Programming Concepts in JavaOops concepts || Object Oriented Programming Concepts in Java
Oops concepts || Object Oriented Programming Concepts in Java
 
Object oriented concepts with java
Object oriented concepts with javaObject oriented concepts with java
Object oriented concepts with java
 
Core java lessons
Core java lessonsCore java lessons
Core java lessons
 
Cs8392 oops 5 units notes
Cs8392 oops 5 units notes Cs8392 oops 5 units notes
Cs8392 oops 5 units notes
 
Core java programming tutorial - Brainsmartlabs
Core java programming tutorial - BrainsmartlabsCore java programming tutorial - Brainsmartlabs
Core java programming tutorial - Brainsmartlabs
 
Java features
Java  features Java  features
Java features
 
JAVA Object Oriented Programming (OOP)
JAVA Object Oriented Programming (OOP)JAVA Object Oriented Programming (OOP)
JAVA Object Oriented Programming (OOP)
 
Introduction of java
Introduction  of javaIntroduction  of java
Introduction of java
 
Std 12 computer chapter 6 object oriented concepts (part 1)
Std 12 computer chapter 6 object oriented concepts (part 1)Std 12 computer chapter 6 object oriented concepts (part 1)
Std 12 computer chapter 6 object oriented concepts (part 1)
 
Core java
Core javaCore java
Core java
 
Practical OOP In Java
Practical OOP In JavaPractical OOP In Java
Practical OOP In Java
 
Object oriented programming (oop) cs304 power point slides lecture 01
Object oriented programming (oop)   cs304 power point slides lecture 01Object oriented programming (oop)   cs304 power point slides lecture 01
Object oriented programming (oop) cs304 power point slides lecture 01
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
Introduction to oop
Introduction to oopIntroduction to oop
Introduction to oop
 
Basic Java Programming
Basic Java ProgrammingBasic Java Programming
Basic Java Programming
 

Viewers also liked

Some Emerging Challenges For Rapid Tactics In Breaks To Marrakech
Some Emerging Challenges For Rapid Tactics In Breaks To Marrakech
Some Emerging Challenges For Rapid Tactics In Breaks To Marrakech
Some Emerging Challenges For Rapid Tactics In Breaks To Marrakech
educatedchief564
 
02 - Prepcode
02 - Prepcode02 - Prepcode
02 - Prepcode
thewhiteafrican
 
On Malicious Data Attacks on Power System State Estimation
On Malicious Data Attacks on Power System State EstimationOn Malicious Data Attacks on Power System State Estimation
On Malicious Data Attacks on Power System State Estimation
Faizan Ali
 
03 Objects
03 Objects03 Objects
03 Objects
thewhiteafrican
 
Vocab 9 review
Vocab 9 reviewVocab 9 review
Vocab 9 review
chickethier
 
A super resolution algorithm for surveillance Images
A super resolution algorithm for surveillance ImagesA super resolution algorithm for surveillance Images
A super resolution algorithm for surveillance Images
Faizan Ali
 
Basic Guidelines On Realistic Lollipop Holidays Solutions
Basic Guidelines On Realistic Lollipop Holidays Solutions
Basic Guidelines On Realistic Lollipop Holidays Solutions
Basic Guidelines On Realistic Lollipop Holidays Solutions
educatedchief564
 
Leadership skills
Leadership skillsLeadership skills
Leadership skills
Pranjal Shukla
 
Vocab 4 review
Vocab 4 reviewVocab 4 review
Vocab 4 review
chickethier
 
Vocab 3 review
Vocab 3 reviewVocab 3 review
Vocab 3 review
chickethier
 
Vocab 7
Vocab 7 Vocab 7
Vocab 7
chickethier
 
Vocab 6 review
Vocab 6 reviewVocab 6 review
Vocab 6 review
chickethier
 
On Comparative study of Image Restoration Algorithms
On Comparative study of Image Restoration AlgorithmsOn Comparative study of Image Restoration Algorithms
On Comparative study of Image Restoration Algorithms
Faizan Ali
 

Viewers also liked (13)

Some Emerging Challenges For Rapid Tactics In Breaks To Marrakech
Some Emerging Challenges For Rapid Tactics In Breaks To Marrakech
Some Emerging Challenges For Rapid Tactics In Breaks To Marrakech
Some Emerging Challenges For Rapid Tactics In Breaks To Marrakech
 
02 - Prepcode
02 - Prepcode02 - Prepcode
02 - Prepcode
 
On Malicious Data Attacks on Power System State Estimation
On Malicious Data Attacks on Power System State EstimationOn Malicious Data Attacks on Power System State Estimation
On Malicious Data Attacks on Power System State Estimation
 
03 Objects
03 Objects03 Objects
03 Objects
 
Vocab 9 review
Vocab 9 reviewVocab 9 review
Vocab 9 review
 
A super resolution algorithm for surveillance Images
A super resolution algorithm for surveillance ImagesA super resolution algorithm for surveillance Images
A super resolution algorithm for surveillance Images
 
Basic Guidelines On Realistic Lollipop Holidays Solutions
Basic Guidelines On Realistic Lollipop Holidays Solutions
Basic Guidelines On Realistic Lollipop Holidays Solutions
Basic Guidelines On Realistic Lollipop Holidays Solutions
 
Leadership skills
Leadership skillsLeadership skills
Leadership skills
 
Vocab 4 review
Vocab 4 reviewVocab 4 review
Vocab 4 review
 
Vocab 3 review
Vocab 3 reviewVocab 3 review
Vocab 3 review
 
Vocab 7
Vocab 7 Vocab 7
Vocab 7
 
Vocab 6 review
Vocab 6 reviewVocab 6 review
Vocab 6 review
 
On Comparative study of Image Restoration Algorithms
On Comparative study of Image Restoration AlgorithmsOn Comparative study of Image Restoration Algorithms
On Comparative study of Image Restoration Algorithms
 

Similar to 01 - Intro To Using Java

01 intro tousingjava
01 intro tousingjava01 intro tousingjava
Elements of Java Language
Elements of Java Language Elements of Java Language
Elements of Java Language
Hitesh-Java
 
Introduction to Software Development
Introduction to Software DevelopmentIntroduction to Software Development
Introduction to Software Development
Zeeshan MIrza
 
OOPM Introduction.ppt
OOPM Introduction.pptOOPM Introduction.ppt
OOPM Introduction.ppt
vijay251387
 
Javalecture 1
Javalecture 1Javalecture 1
Javalecture 1
mrinalbhutani
 
Session 02 - Elements of Java Language
Session 02 - Elements of Java LanguageSession 02 - Elements of Java Language
Session 02 - Elements of Java Language
PawanMM
 
1 2 java development
1 2 java development1 2 java development
1 2 java development
Ken Kretsch
 
R:\ap java\class slides\chapter 1\1 2 java development
R:\ap java\class slides\chapter 1\1 2 java developmentR:\ap java\class slides\chapter 1\1 2 java development
R:\ap java\class slides\chapter 1\1 2 java development
Ken Kretsch
 
Intro Java Rev010
Intro Java Rev010Intro Java Rev010
Intro Java Rev010
Rich Helton
 
00 intro to java
00 intro to java00 intro to java
00 intro to java
Deia Abdullah
 
01slide
01slide01slide
01slide
cdclabs_123
 
01slide
01slide01slide
01slide
Usha Sri
 
Java_presesntation.ppt
Java_presesntation.pptJava_presesntation.ppt
Java_presesntation.ppt
VGaneshKarthikeyan
 
Bca 4020 java programming
Bca 4020   java programmingBca 4020   java programming
Bca 4020 java programming
smumbahelp
 
Java lab-manual
Java lab-manualJava lab-manual
Java lab-manual
Khurshid Asghar
 
SMI - Introduction to Java
SMI - Introduction to JavaSMI - Introduction to Java
SMI - Introduction to Java
SMIJava
 
Fundamentals of oop lecture 2
Fundamentals of oop lecture 2Fundamentals of oop lecture 2
Fundamentals of oop lecture 2
miiro30
 
Core java-introduction
Core java-introductionCore java-introduction
Core java-introduction
Ramlal Pawar
 
Unit1 introduction to Java
Unit1 introduction to JavaUnit1 introduction to Java
Unit1 introduction to Java
DevaKumari Vijay
 
Professional-core-java-training
Professional-core-java-trainingProfessional-core-java-training
Professional-core-java-training
Vibrant Technologies & Computers
 

Similar to 01 - Intro To Using Java (20)

01 intro tousingjava
01 intro tousingjava01 intro tousingjava
01 intro tousingjava
 
Elements of Java Language
Elements of Java Language Elements of Java Language
Elements of Java Language
 
Introduction to Software Development
Introduction to Software DevelopmentIntroduction to Software Development
Introduction to Software Development
 
OOPM Introduction.ppt
OOPM Introduction.pptOOPM Introduction.ppt
OOPM Introduction.ppt
 
Javalecture 1
Javalecture 1Javalecture 1
Javalecture 1
 
Session 02 - Elements of Java Language
Session 02 - Elements of Java LanguageSession 02 - Elements of Java Language
Session 02 - Elements of Java Language
 
1 2 java development
1 2 java development1 2 java development
1 2 java development
 
R:\ap java\class slides\chapter 1\1 2 java development
R:\ap java\class slides\chapter 1\1 2 java developmentR:\ap java\class slides\chapter 1\1 2 java development
R:\ap java\class slides\chapter 1\1 2 java development
 
Intro Java Rev010
Intro Java Rev010Intro Java Rev010
Intro Java Rev010
 
00 intro to java
00 intro to java00 intro to java
00 intro to java
 
01slide
01slide01slide
01slide
 
01slide
01slide01slide
01slide
 
Java_presesntation.ppt
Java_presesntation.pptJava_presesntation.ppt
Java_presesntation.ppt
 
Bca 4020 java programming
Bca 4020   java programmingBca 4020   java programming
Bca 4020 java programming
 
Java lab-manual
Java lab-manualJava lab-manual
Java lab-manual
 
SMI - Introduction to Java
SMI - Introduction to JavaSMI - Introduction to Java
SMI - Introduction to Java
 
Fundamentals of oop lecture 2
Fundamentals of oop lecture 2Fundamentals of oop lecture 2
Fundamentals of oop lecture 2
 
Core java-introduction
Core java-introductionCore java-introduction
Core java-introduction
 
Unit1 introduction to Java
Unit1 introduction to JavaUnit1 introduction to Java
Unit1 introduction to Java
 
Professional-core-java-training
Professional-core-java-trainingProfessional-core-java-training
Professional-core-java-training
 

Recently uploaded

RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 

Recently uploaded (20)

RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 

01 - Intro To Using Java

  • 1. Welcome To Introduction to Java Programming
  • 2. Meet Your Instructor That’s me
  • 3. Who Should Drink JAVA? Have you done some programming? Do you want to learn Java? Do you prefer stimulating dinner conversations over coffee to dry, dull, technical lectures? Do you need this course to graduate? IDC3931 © PIC
  • 4. Who Drinks JAVA? IDC3931 © PIC
  • 5. What Is A Computer? A computer is something that takes in information (input), processes it according to a set of instructions (program), and produces a result (output). Computers communicate through a binary alphabet. The letters in this alphabet are ‘0’ and ‘1’. Everything else is made out of these ‘letters’ which are called bits. Bits are represented in a computer by electrical signals: low voltage would mean a ‘0’ and higher voltage a ‘1’. Eight bits gathered together form one byte. IDC3931 © PIC
  • 6. What Is JAVA? Java is a free, open-source, Object Oriented Programming (OOP) language – everything is contained inside classes and objects. Java is über portable – it can run on any machine with a Java Virtual Machine (JVM) installed. No matter what computer you have, you can write the same Java programs. IDC3931 © PIC
  • 7. How WE use Java Sourc e Code Compiler Java bytecod e V i r t u a l M a c h i n e s
  • 8. How WE use Java Source Code Compiler Virtual Machines Java bytecode IDC3931 © PIC
  • 9. Code Structure in Java source code class file method 1statement method 2statement statement
  • 10. What goes in the source file? A source file (with the .java extension) holds one class definition. The class represents a piece of your program, although a very tiny application might need just a single class. The class must go within a pair of curly braces public class Bicycle { } clas s The source file MUST have the same name as the class. For example, the Bicycle class my be stored in the Bicycle.java file. A class is the blueprint from which individual objects are created. Think of a bicycle…
  • 11. What goes in a class? A class has one or more methods. In the Bicycle class, the pedal method will hold instructions for how the Bicycle should pedal. Your methods must be declared inside a class (in other words, within the curly braces public class Bicycle{ void pedal( ) { } } metho d of the class). A bicycle might have some methods such as: speedup(), break(), gear(), direction()…
  • 12. What goes in a method? Within the curly braces public class Dog { void bark ( ) { statement1; statement2; statement3; } } statemen ts of a method, write your instructions for how that method should be performed. Method code is basically a set of statements, and for now you can think of a function or procedure. Bicycle{ pedal( ) { statement1; statement2; statement3; What are you staring at?
  • 13. One Blueprint Can Be Used To Help Build Different Objects Shape rotate ( ) playSound ( ) Squar e Triangl e Circle Amoeba This is called inheritance
  • 14. EVERYTHING is made from OBJECTS Object equals() getClass() hashCode() toString() Shape rotate() playSound() Circle doSomething() This is the Object class from which ALL other objects are created.
  • 15. What You Will Get Out Of Learning and Using JAVA! A thorough understanding of Object Oriented Programming. Learn a language that can be run on any platform. Build your programming skills and confidence. Learn how to work and program in groups. Develop Graphical User Interfaces. If you can make it through the day without programming, you haven’t tried JAVA!
  • 16. Where To Start Setup Eclipse Classic 3.6 Write your first Java program

Editor's Notes

  1. Add clip from Steve Jobs on OOP