SlideShare a Scribd company logo
Welcome To Problem SolvingProblem Solvingwith OOPand JAVAwith OOPand JAVA
Meet Your InstructorThat’s me
Meet Your TAAlishaIDC3931 © PIC
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?Muahahahahaha!IDC3931 © PIC
Who Drinks JAVA?IDC3931 © PIC
IDC3931 © PICWhat 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.
What Is JAVA?Java is a free, open-source, Object Oriented Programming (OOP) language – everything is contained inside classes and objects.Java is überportable – 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 WEuse JavaSource CodeVirtual        MachinesJava bytecodeCompiler
How WEuse JavaVirtual MachinesSource CodeJava bytecodeCompilerIDC3931 © PIC
Code Structure in Javasource codeclass filemethod 1statementmethod 2statementstatement
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 ofpublic class Bicycle {}curly bracesThe source file MUST have the same name as the class. For example, the Bicycle class my be stored in the Bicycle.javafile.classA 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 public class Bicycle{	void pedal( ) {	}}curly bracesof the class).methodA bicycle might have some methods such as: speedup(), break(), gear(), direction()…
What goes in a method?Within thecurly bracespublic class Dog {void bark ( ) {statement1;statement2;	   statement3;	}}public class Bicycle{void pedal( ) {}}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. statement1;statement2;statement3;What are you staring at?statements
One Blueprint Can Be Used To Help Build Different ObjectsShaperotate ( )playSound ( )CircleSquareAmoebaTriangleThis is called inheritance
EVERYTHINGis made from OBJECTSObjectequals()getClass()hashCode()toString()Shaperotate()playSound()CircledoSomething()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 triedJAVA!
Where To StartSetup Eclipse Classic 3.6Write your first Java programBring your laptops to class every lecture starting next week!

More Related Content

PPTX
01 - Intro To Using Java
thewhiteafrican
 
PPTX
Java object oriented programming concepts - Brainsmartlabs
brainsmartlabsedu
 
PPT
OOP programming
anhdbh
 
PPT
Object oriented programming (oop) cs304 power point slides lecture 01
Adil Kakakhel
 
PPT
Java oops and fundamentals
javaease
 
PPSX
Short notes of oop with java
Mohamed Fathy
 
PPT
Java Notes
Abhishek Khune
 
PPTX
Abstract class and Interface
Haris Bin Zahid
 
01 - Intro To Using Java
thewhiteafrican
 
Java object oriented programming concepts - Brainsmartlabs
brainsmartlabsedu
 
OOP programming
anhdbh
 
Object oriented programming (oop) cs304 power point slides lecture 01
Adil Kakakhel
 
Java oops and fundamentals
javaease
 
Short notes of oop with java
Mohamed Fathy
 
Java Notes
Abhishek Khune
 
Abstract class and Interface
Haris Bin Zahid
 

What's hot (16)

PPT
OOP in Java
wiradikusuma
 
PDF
OOPs Concepts - Android Programming
Purvik Rana
 
PPT
Java is an Object-Oriented Language
ale8819
 
PDF
Introduction to java and oop
baabtra.com - No. 1 supplier of quality freshers
 
PPT
Oop Presentation
Ghaffar Khan
 
PPTX
Introduction to oop using java
omeed
 
PPT
Oop java
Minal Maniar
 
PPT
Oops ppt
abhayjuneja
 
PPT
Md02 - Getting Started part-2
Rakesh Madugula
 
PDF
Object Oriented Paradigm
Hüseyin Ergin
 
PDF
Java Programming Paradigms Chapter 1
Sakthi Durai
 
PPTX
Introduction to OOP concepts
Ahmed Farag
 
PPTX
OOPS in Java
Zeeshan Khan
 
PPTX
Object Oriented Programming in Java _lecture 1
Mahmoud Alfarra
 
PPT
Object-Oriented Concepts
Abdalla Mahmoud
 
DOC
C# by Zaheer Abbas Aghani
Information Technology Center
 
OOP in Java
wiradikusuma
 
OOPs Concepts - Android Programming
Purvik Rana
 
Java is an Object-Oriented Language
ale8819
 
Oop Presentation
Ghaffar Khan
 
Introduction to oop using java
omeed
 
Oop java
Minal Maniar
 
Oops ppt
abhayjuneja
 
Md02 - Getting Started part-2
Rakesh Madugula
 
Object Oriented Paradigm
Hüseyin Ergin
 
Java Programming Paradigms Chapter 1
Sakthi Durai
 
Introduction to OOP concepts
Ahmed Farag
 
OOPS in Java
Zeeshan Khan
 
Object Oriented Programming in Java _lecture 1
Mahmoud Alfarra
 
Object-Oriented Concepts
Abdalla Mahmoud
 
C# by Zaheer Abbas Aghani
Information Technology Center
 
Ad
Ad

Similar to 01 intro to using java (20)

PPTX
01 intro tousingjava
Program in Interdisciplinary Computing
 
PPT
Javalecture 1
mrinalbhutani
 
PPT
1 2 java development
Ken Kretsch
 
PPT
R:\ap java\class slides\chapter 1\1 2 java development
Ken Kretsch
 
PPT
Intro Java Rev010
Rich Helton
 
DOCX
Bca 4020 java programming
smumbahelp
 
DOC
Java getstarted
Nobin নবীন
 
PDF
Mastering Java Terminologies_ Essential Concepts for Beginners.pdf
CodeYoung
 
PPTX
Java fundamentals
Sohail Shaghasi
 
PPT
Fundamentals of oop lecture 2
miiro30
 
PPTX
Unit 1 – Introduction to Java- (Shilpa R).pptx
shilpar780389
 
PPT
01slide
Usha Sri
 
PPT
01slide
cdclabs_123
 
PPT
OOPM Introduction.ppt
vijay251387
 
PPT
01slide (1)ffgfefge
bsnl007
 
PPT
Java Programming for Designers
R. Sosa
 
PDF
Dependency Injection: Why is awesome and why should I care?
devObjective
 
PDF
Dependency Injection
ColdFusionConference
 
PDF
Core Java Interview Questions PDF By ScholarHat
Scholarhat
 
PPT
Core java-introduction
Ramlal Pawar
 
Javalecture 1
mrinalbhutani
 
1 2 java development
Ken Kretsch
 
R:\ap java\class slides\chapter 1\1 2 java development
Ken Kretsch
 
Intro Java Rev010
Rich Helton
 
Bca 4020 java programming
smumbahelp
 
Java getstarted
Nobin নবীন
 
Mastering Java Terminologies_ Essential Concepts for Beginners.pdf
CodeYoung
 
Java fundamentals
Sohail Shaghasi
 
Fundamentals of oop lecture 2
miiro30
 
Unit 1 – Introduction to Java- (Shilpa R).pptx
shilpar780389
 
01slide
Usha Sri
 
01slide
cdclabs_123
 
OOPM Introduction.ppt
vijay251387
 
01slide (1)ffgfefge
bsnl007
 
Java Programming for Designers
R. Sosa
 
Dependency Injection: Why is awesome and why should I care?
devObjective
 
Dependency Injection
ColdFusionConference
 
Core Java Interview Questions PDF By ScholarHat
Scholarhat
 
Core java-introduction
Ramlal Pawar
 

More from Program in Interdisciplinary Computing (20)

Recently uploaded (20)

PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PDF
Advances in Ultra High Voltage (UHV) Transmission and Distribution Systems.pdf
Nabajyoti Banik
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PDF
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
PDF
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PDF
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
PPTX
Coupa-Overview _Assumptions presentation
annapureddyn
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PDF
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
Advances in Ultra High Voltage (UHV) Transmission and Distribution Systems.pdf
Nabajyoti Banik
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
Coupa-Overview _Assumptions presentation
annapureddyn
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 

01 intro to using java

  • 1. Welcome To Problem SolvingProblem Solvingwith OOPand JAVAwith OOPand JAVA
  • 4. 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?Muahahahahaha!IDC3931 © PIC
  • 6. IDC3931 © PICWhat 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.
  • 7. What Is JAVA?Java is a free, open-source, Object Oriented Programming (OOP) language – everything is contained inside classes and objects.Java is überportable – 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
  • 8. How WEuse JavaSource CodeVirtual MachinesJava bytecodeCompiler
  • 9. How WEuse JavaVirtual MachinesSource CodeJava bytecodeCompilerIDC3931 © PIC
  • 10. Code Structure in Javasource codeclass filemethod 1statementmethod 2statementstatement
  • 11. 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 ofpublic class Bicycle {}curly bracesThe source file MUST have the same name as the class. For example, the Bicycle class my be stored in the Bicycle.javafile.classA class is the blueprint from which individual objects are created. Think of a bicycle…
  • 12. 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 public class Bicycle{ void pedal( ) { }}curly bracesof the class).methodA bicycle might have some methods such as: speedup(), break(), gear(), direction()…
  • 13. What goes in a method?Within thecurly bracespublic class Dog {void bark ( ) {statement1;statement2; statement3; }}public class Bicycle{void pedal( ) {}}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. statement1;statement2;statement3;What are you staring at?statements
  • 14. One Blueprint Can Be Used To Help Build Different ObjectsShaperotate ( )playSound ( )CircleSquareAmoebaTriangleThis is called inheritance
  • 15. EVERYTHINGis made from OBJECTSObjectequals()getClass()hashCode()toString()Shaperotate()playSound()CircledoSomething()This is the Object class from which ALL other objects are created.
  • 16. 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 triedJAVA!
  • 17. Where To StartSetup Eclipse Classic 3.6Write your first Java programBring your laptops to class every lecture starting next week!