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

PPTX
PPT
OOP in Java
PPTX
Java object oriented programming concepts - Brainsmartlabs
PPTX
Introduction to oop using java
PPT
OOP programming
PPSX
Short notes of oop with java
PPTX
Basic online java course - Brainsmartlabs
DOCX
OBJECT ORIENTED ROGRAMMING With Question And Answer Full
OOP in Java
Java object oriented programming concepts - Brainsmartlabs
Introduction to oop using java
OOP programming
Short notes of oop with java
Basic online java course - Brainsmartlabs
OBJECT ORIENTED ROGRAMMING With Question And Answer Full

What's hot (20)

PPTX
Introduction to oop
PPTX
Object Oriented Programing JAVA presentaion
PPSX
Java Object Oriented Programming
PPT
Oops ppt
DOC
Course outline [csc241 object oriented programming]
PDF
Oops concepts || Object Oriented Programming Concepts in Java
PPTX
Object oriented concepts with java
PPSX
Core java lessons
PDF
Cs8392 oops 5 units notes
PPTX
Core java programming tutorial - Brainsmartlabs
PPT
Java features
PDF
JAVA Object Oriented Programming (OOP)
PPSX
Introduction of java
PPTX
Std 12 computer chapter 6 object oriented concepts (part 1)
PPTX
Core java
KEY
Practical OOP In Java
PPT
Object oriented programming (oop) cs304 power point slides lecture 01
PPT
Introduction to java
PPT
Introduction to oop
PDF
Basic Java Programming
Introduction to oop
Object Oriented Programing JAVA presentaion
Java Object Oriented Programming
Oops ppt
Course outline [csc241 object oriented programming]
Oops concepts || Object Oriented Programming Concepts in Java
Object oriented concepts with java
Core java lessons
Cs8392 oops 5 units notes
Core java programming tutorial - Brainsmartlabs
Java features
JAVA Object Oriented Programming (OOP)
Introduction of java
Std 12 computer chapter 6 object oriented concepts (part 1)
Core java
Practical OOP In Java
Object oriented programming (oop) cs304 power point slides lecture 01
Introduction to java
Introduction to oop
Basic Java Programming
Ad

Viewers also liked (13)

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

Similar to 01 - Intro To Using Java (20)

PPTX
PPSX
Elements of Java Language
PPT
Introduction to Software Development
PPT
OOPM Introduction.ppt
PPT
Javalecture 1
PPTX
Session 02 - Elements of Java Language
PDF
Mastering Java Terminologies_ Essential Concepts for Beginners.pdf
PPT
R:\ap java\class slides\chapter 1\1 2 java development
PPT
1 2 java development
PDF
PJ_M01_C01_PPT_Introduction to Object Oriented Programming Using Java.pdf
PPTX
Unit 1 – Introduction to Java- (Shilpa R).pptx
PPT
Intro Java Rev010
PPT
Jacarashed-1746968053-300050282-Java.ppt
PPT
00 intro to java
PPT
01slide
PPT
01slide
PPT
Java_presesntation.ppt
DOCX
Bca 4020 java programming
PDF
Java lab-manual
PPT
SMI - Introduction to Java
Elements of Java Language
Introduction to Software Development
OOPM Introduction.ppt
Javalecture 1
Session 02 - Elements of Java Language
Mastering Java Terminologies_ Essential Concepts for Beginners.pdf
R:\ap java\class slides\chapter 1\1 2 java development
1 2 java development
PJ_M01_C01_PPT_Introduction to Object Oriented Programming Using Java.pdf
Unit 1 – Introduction to Java- (Shilpa R).pptx
Intro Java Rev010
Jacarashed-1746968053-300050282-Java.ppt
00 intro to java
01slide
01slide
Java_presesntation.ppt
Bca 4020 java programming
Java lab-manual
SMI - Introduction to Java

Recently uploaded (20)

PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Basic Mud Logging Guide for educational purpose
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
Pre independence Education in Inndia.pdf
PDF
01-Introduction-to-Information-Management.pdf
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
master seminar digital applications in india
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Computing-Curriculum for Schools in Ghana
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
Institutional Correction lecture only . . .
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Complications of Minimal Access Surgery at WLH
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Basic Mud Logging Guide for educational purpose
Microbial disease of the cardiovascular and lymphatic systems
PPH.pptx obstetrics and gynecology in nursing
Pre independence Education in Inndia.pdf
01-Introduction-to-Information-Management.pdf
O5-L3 Freight Transport Ops (International) V1.pdf
O7-L3 Supply Chain Operations - ICLT Program
master seminar digital applications in india
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Renaissance Architecture: A Journey from Faith to Humanism
Anesthesia in Laparoscopic Surgery in India
Supply Chain Operations Speaking Notes -ICLT Program
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Computing-Curriculum for Schools in Ghana
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Institutional Correction lecture only . . .
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Complications of Minimal Access Surgery at WLH

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

  • #7: Add clip from Steve Jobs on OOP