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

Introduction to java
Introduction to javaIntroduction to java
Introduction to java
attiqrocket
 
Continuous integration by Rémy Virin
Continuous integration by Rémy VirinContinuous integration by Rémy Virin
Continuous integration by Rémy Virin
CocoaHeads France
 

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
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
Lesson1 intro
Lesson1 introLesson1 intro
Lesson1 intro
 
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

Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
VictoriaMetrics
 

Recently uploaded (20)

WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
 
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of TransformationWSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
 
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public AdministrationWSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
WSO2Con2024 - Low-Code Integration Tooling
WSO2Con2024 - Low-Code Integration ToolingWSO2Con2024 - Low-Code Integration Tooling
WSO2Con2024 - Low-Code Integration Tooling
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
WSO2CON 2024 Slides - Unlocking Value with AI
WSO2CON 2024 Slides - Unlocking Value with AIWSO2CON 2024 Slides - Unlocking Value with AI
WSO2CON 2024 Slides - Unlocking Value with AI
 
WSO2Con2024 - Software Delivery in Hybrid Environments
WSO2Con2024 - Software Delivery in Hybrid EnvironmentsWSO2Con2024 - Software Delivery in Hybrid Environments
WSO2Con2024 - Software Delivery in Hybrid Environments
 
WSO2CON 2024 - Software Engineering for Digital Businesses
WSO2CON 2024 - Software Engineering for Digital BusinessesWSO2CON 2024 - Software Engineering for Digital Businesses
WSO2CON 2024 - Software Engineering for Digital Businesses
 
WSO2Con2024 - Navigating the Digital Landscape: Transforming Healthcare with ...
WSO2Con2024 - Navigating the Digital Landscape: Transforming Healthcare with ...WSO2Con2024 - Navigating the Digital Landscape: Transforming Healthcare with ...
WSO2Con2024 - Navigating the Digital Landscape: Transforming Healthcare with ...
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & InnovationWSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
 
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security Program
 
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
 
WSO2CON2024 - Why Should You Consider Ballerina for Your Next Integration
WSO2CON2024 - Why Should You Consider Ballerina for Your Next IntegrationWSO2CON2024 - Why Should You Consider Ballerina for Your Next Integration
WSO2CON2024 - Why Should You Consider Ballerina for Your Next Integration
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 

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