SlideShare a Scribd company logo
1 of 13
Download to read offline
Intro to Java
Inder
Please dial into the conf bridge using the “phone” icon. Thanks ☺
Feb 2015
Enrollment
Course Website – http://introtojava.usefedora.com/
• Course – Video study materials and assignments
• Contact – hello@introtojava.com
• FAQs on website – if not covered, please ask
Meetup sessions
Virtual Meetup
• Enter your name. Click on people icon and your name is the first in the list
• All lines will be muted at the beginning of the session
• Use *6 to un-mute your line if you have a question or comment
• Send your feedback to hello@introtojava.com
Meetup sessions
• Lots of discussion, please ask questions
• Quick recap of study material videos
• Discuss assignments, problems faced
• Encourage discussions with fellow learners – teamwork
• Same goal for everyone – Get started with coding!
Recap: What is Coding?
1. Take the two number numbers to be
multiplied, call them A and B.
2. Start your calculation with 0.
3. Add the first number - A, to your
calculation, and keep track of how many
times you have added A.
4. If you have added less than B times, then
do step 3 again.
5. Now you have your answer ... ☺
Lets check if it works !!
Calculate 3 times 4
1) Take A is 3, and B is 4.
2) Start Calculation with 0.
3) Calculation is 3, and added 1 time.
3) Calculation is 6, and added 2 times.
3) Calculation is 9, and added 3 times.
3) Calculation is 12, and added 4 times.
4) Added 4 times, continue.
5) We have our answer - 12
Recap: What is Coding?
Let’s create an English-like language that,
• ... only allows certain words
• ... must follow strict rules (called “syntax”)
and we will call it a Programming Language!
Everyone invented their own ☺
- Java, C, COBOL, Ruby, Python etc.
Coding - writing instructions in a Programming Language
• e.g. “I like to code in Java”, or “Coding in Java is so much easier than C”.
James Gosling:
Inventor of Java
Recap Video: Inside a Computer
INPUT DEVICES
(builtin)
OUTPUT DEVICES
(builtin)
MEMORY
(RAM)
PROCESSOR
(CPU)
CONNECTORS
INPUT
(external)
OUTPUT
(external)
Human Computer
Keyboard, Hard
drive, Webcam
Display, Hard,
drive, Speakers
USB, Video
Mic, Thumb drive,
Scanner
Printer, Thumb
drive, Projector
Human Computer Interface –
point of communication between
people and computer using devices,
voice, touch etc.
Recap Video: Inside a Computer
How to “program” a computer
1. Write the algorithm for processing the input data
2. Write the instructions in a Programming Language, e.g. Java
3. Convert from Programming Language to Machine Language code
4. Load the Machine Language code into MEMORY
5. CPU executes all the steps in the code
6. Check that everything works as expected
We have programs that will Compile, Load and Run for us,
but we must Design, Code and Test our programs ...
DESIGN
CODE
COMPILE
RUN
TEST
Recap Video: Introducing Java
• Imagine an “ideal” computer – call it Java
Virtual Machine with its own JVM machine
language (called bytecode)
• Compile Java code to bytecode (instead of
CPU Machine Language)
• Before Run, convert bytecode into the
Machine Language of the specific CPU
(JVM software)
Java is Compile once, Run anywhere
(also called as portability)
Recap Video: Hello World
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World");
}
}
Common rules of Java language
• Language reserves 50 key words
• e.g. class, public, try, String
• Each instruction ends with “;”
• Each block starts with “{”, ends with “}”
• All programs start with “main”
Empty Program
public class HelloWorld {
public static void main(String[] args) {
}
}
Common rules of Java language
• Language reserves 50 key words
• e.g. class, public, try, String
• Each instruction ends with “;”
• Each block starts with “{”, ends with “}”
• All programs start with “main”
Assignment Part 1 results
Assignment Part 2 results
Popular mentions
• Python(7), Ruby (7)
• PHP (5), C++ (3), COBOL (3)
Other mentions
• Twice – C, Swift, Visual Basic, ActionScript, JavaScript
• Single – Groovy, Scala, AWK, Perl, Apex, SQL, Java, Scratch, Fortran, VB.net
Incorrect mention
• Drupal
- Q & A -
Connect on email

More Related Content

Similar to Intro To Java Alpharetta Meetup Day-1

Python week 2 2019 2020 for g10 by eng.osama ghandour
Python week 2 2019 2020 for g10 by eng.osama ghandourPython week 2 2019 2020 for g10 by eng.osama ghandour
Python week 2 2019 2020 for g10 by eng.osama ghandourOsama Ghandour Geris
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to javaattiqrocket
 
Micro Talk - Test Your S#!? !
Micro Talk - Test Your S#!? !Micro Talk - Test Your S#!? !
Micro Talk - Test Your S#!? !Adam Hill
 
Introduction to Game programming with PyGame Part 1
Introduction to Game programming with PyGame Part 1Introduction to Game programming with PyGame Part 1
Introduction to Game programming with PyGame Part 1Abhishek Mishra
 
Letter to a Junior Developer: The Engineering Side of Programming
Letter to a Junior Developer: The Engineering Side of ProgrammingLetter to a Junior Developer: The Engineering Side of Programming
Letter to a Junior Developer: The Engineering Side of ProgrammingLazar Kovacevic
 
Continuous integration by Rémy Virin
Continuous integration by Rémy VirinContinuous integration by Rémy Virin
Continuous integration by Rémy VirinCocoaHeads France
 
Big Java Chapter 1
Big Java Chapter 1Big Java Chapter 1
Big Java Chapter 1Maria Joslin
 
iPhone Development For .Net Dev
iPhone Development For .Net DeviPhone Development For .Net Dev
iPhone Development For .Net DevAlex Hung
 
2R-3KS03-OOP_UNIT-I (Part-A)_2023-24.pptx
2R-3KS03-OOP_UNIT-I (Part-A)_2023-24.pptx2R-3KS03-OOP_UNIT-I (Part-A)_2023-24.pptx
2R-3KS03-OOP_UNIT-I (Part-A)_2023-24.pptxGauravGamer2
 

Similar to Intro To Java Alpharetta Meetup Day-1 (20)

Python week 2 2019 2020 for g10 by eng.osama ghandour
Python week 2 2019 2020 for g10 by eng.osama ghandourPython week 2 2019 2020 for g10 by eng.osama ghandour
Python week 2 2019 2020 for g10 by eng.osama ghandour
 
Lesson1 intro
Lesson1 introLesson1 intro
Lesson1 intro
 
Lesson1 intro
Lesson1 introLesson1 intro
Lesson1 intro
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
Micro Talk - Test Your S#!? !
Micro Talk - Test Your S#!? !Micro Talk - Test Your S#!? !
Micro Talk - Test Your S#!? !
 
Introduction to Game programming with PyGame Part 1
Introduction to Game programming with PyGame Part 1Introduction to Game programming with PyGame Part 1
Introduction to Game programming with PyGame Part 1
 
Code Retreat
Code RetreatCode Retreat
Code Retreat
 
Python week 1 2020-2021
Python week 1 2020-2021Python week 1 2020-2021
Python week 1 2020-2021
 
Letter to a Junior Developer: The Engineering Side of Programming
Letter to a Junior Developer: The Engineering Side of ProgrammingLetter to a Junior Developer: The Engineering Side of Programming
Letter to a Junior Developer: The Engineering Side of Programming
 
Continuous integration by Rémy Virin
Continuous integration by Rémy VirinContinuous integration by Rémy Virin
Continuous integration by Rémy Virin
 
Java (1)
Java (1)Java (1)
Java (1)
 
Big Java Chapter 1
Big Java Chapter 1Big Java Chapter 1
Big Java Chapter 1
 
Java basics
Java basicsJava basics
Java basics
 
1.Intro--Why Java.pptx
1.Intro--Why Java.pptx1.Intro--Why Java.pptx
1.Intro--Why Java.pptx
 
iPhone Development For .Net Dev
iPhone Development For .Net DeviPhone Development For .Net Dev
iPhone Development For .Net Dev
 
Introduction to Coding
Introduction to CodingIntroduction to Coding
Introduction to Coding
 
2R-3KS03-OOP_UNIT-I (Part-A)_2023-24.pptx
2R-3KS03-OOP_UNIT-I (Part-A)_2023-24.pptx2R-3KS03-OOP_UNIT-I (Part-A)_2023-24.pptx
2R-3KS03-OOP_UNIT-I (Part-A)_2023-24.pptx
 
Write tests, please
Write tests, pleaseWrite tests, please
Write tests, please
 
Programming 1 [compatibility mode]mm
Programming 1 [compatibility mode]mmProgramming 1 [compatibility mode]mm
Programming 1 [compatibility mode]mm
 
Lecture java01
Lecture java01Lecture java01
Lecture java01
 

Recently uploaded

Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024StefanoLambiase
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfPower Karaoke
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWave PLM
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaHanief Utama
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Andreas Granig
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmSujith Sukumaran
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio, Inc.
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsAhmed Mohamed
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEEVICTOR MAESTRE RAMIREZ
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesPhilip Schwarz
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataBradBedford3
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...Christina Lin
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 

Recently uploaded (20)

Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdf
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need It
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief Utama
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalm
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML Diagrams
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEE
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a series
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 

Intro To Java Alpharetta Meetup Day-1

  • 1. Intro to Java Inder Please dial into the conf bridge using the “phone” icon. Thanks ☺ Feb 2015
  • 2. Enrollment Course Website – http://introtojava.usefedora.com/ • Course – Video study materials and assignments • Contact – hello@introtojava.com • FAQs on website – if not covered, please ask
  • 3. Meetup sessions Virtual Meetup • Enter your name. Click on people icon and your name is the first in the list • All lines will be muted at the beginning of the session • Use *6 to un-mute your line if you have a question or comment • Send your feedback to hello@introtojava.com Meetup sessions • Lots of discussion, please ask questions • Quick recap of study material videos • Discuss assignments, problems faced • Encourage discussions with fellow learners – teamwork • Same goal for everyone – Get started with coding!
  • 4. Recap: What is Coding? 1. Take the two number numbers to be multiplied, call them A and B. 2. Start your calculation with 0. 3. Add the first number - A, to your calculation, and keep track of how many times you have added A. 4. If you have added less than B times, then do step 3 again. 5. Now you have your answer ... ☺ Lets check if it works !! Calculate 3 times 4 1) Take A is 3, and B is 4. 2) Start Calculation with 0. 3) Calculation is 3, and added 1 time. 3) Calculation is 6, and added 2 times. 3) Calculation is 9, and added 3 times. 3) Calculation is 12, and added 4 times. 4) Added 4 times, continue. 5) We have our answer - 12
  • 5. Recap: What is Coding? Let’s create an English-like language that, • ... only allows certain words • ... must follow strict rules (called “syntax”) and we will call it a Programming Language! Everyone invented their own ☺ - Java, C, COBOL, Ruby, Python etc. Coding - writing instructions in a Programming Language • e.g. “I like to code in Java”, or “Coding in Java is so much easier than C”. James Gosling: Inventor of Java
  • 6. Recap Video: Inside a Computer INPUT DEVICES (builtin) OUTPUT DEVICES (builtin) MEMORY (RAM) PROCESSOR (CPU) CONNECTORS INPUT (external) OUTPUT (external) Human Computer Keyboard, Hard drive, Webcam Display, Hard, drive, Speakers USB, Video Mic, Thumb drive, Scanner Printer, Thumb drive, Projector Human Computer Interface – point of communication between people and computer using devices, voice, touch etc.
  • 7. Recap Video: Inside a Computer How to “program” a computer 1. Write the algorithm for processing the input data 2. Write the instructions in a Programming Language, e.g. Java 3. Convert from Programming Language to Machine Language code 4. Load the Machine Language code into MEMORY 5. CPU executes all the steps in the code 6. Check that everything works as expected We have programs that will Compile, Load and Run for us, but we must Design, Code and Test our programs ... DESIGN CODE COMPILE RUN TEST
  • 8. Recap Video: Introducing Java • Imagine an “ideal” computer – call it Java Virtual Machine with its own JVM machine language (called bytecode) • Compile Java code to bytecode (instead of CPU Machine Language) • Before Run, convert bytecode into the Machine Language of the specific CPU (JVM software) Java is Compile once, Run anywhere (also called as portability)
  • 9. Recap Video: Hello World public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World"); } } Common rules of Java language • Language reserves 50 key words • e.g. class, public, try, String • Each instruction ends with “;” • Each block starts with “{”, ends with “}” • All programs start with “main”
  • 10. Empty Program public class HelloWorld { public static void main(String[] args) { } } Common rules of Java language • Language reserves 50 key words • e.g. class, public, try, String • Each instruction ends with “;” • Each block starts with “{”, ends with “}” • All programs start with “main”
  • 11. Assignment Part 1 results
  • 12. Assignment Part 2 results Popular mentions • Python(7), Ruby (7) • PHP (5), C++ (3), COBOL (3) Other mentions • Twice – C, Swift, Visual Basic, ActionScript, JavaScript • Single – Groovy, Scala, AWK, Perl, Apex, SQL, Java, Scratch, Fortran, VB.net Incorrect mention • Drupal
  • 13. - Q & A - Connect on email