SlideShare a Scribd company logo
IHS GIRLS TECH CLUB
• JAVA PROGRAMMING BASICS
IHS GIRLS TECH CLUB: JAVA PROGRAMMING
BASICS
A PROGRAMMING LANGUAGE IS...
• A language designed for programming computers
• Consists of a combination of variables, functions, methods,
and instructions for controlling actions in a computer system
• Follows a specific syntax for controlling the behavior of a
computer or machine
• Thousands of different programming languages have been
created, with many more being created every year
• Description of a programming language is usually split into
the two components of syntax (form) and semantics
(meaning)
POPULAR PROGRAMMING LANGUAGES
1. Java – 19.1% (Android)
2. C – 15.2% (iOS uses a version called Objective-C)
3. C++ – 10.1%
4. PHP – 8.7%
5. Visual Basic – 8.4%
6. Perl – 6.2%
7. Python – 3.8%
8. C# – 3.7% (Windows Mobile)
9. JavaScript – 3.1%
10. Ruby – 2.6%
11. Delphi – 2.1%
WHAT IS JAVA?
• A trademark used for a programming language designed to
develop applications, especially ones for the Internet, that
can operate on different platforms
• Created in 1991 by Sun Microsystems
Popular programs built in Java
JAVA PROS AND CONS
Pros
• Free to use
• Cross Platform (write once, run everywhere)
• Smaller learning curve (get started faster)
Cons
• Performance in comparison with some other languages
• History of security vulnerabilities
WHERE JAVA IS BEING USED
e-Commerce Websites
Computer Desktop Programs
Mobile Applications
Websites and Web games
TOOLS TO USE WITH JAVA
Code Editor
• A source code editor is a text editor program designed
specifically for editing source code of computer programs by
programmers.
Popular Code Editors
• Eclipse
• Netbeans
• Komodo
• Notepad++
• Textmate
TOOLS TO USE WITH JAVA
Java Virtual Machine (JVM) - Used for running Java code
Java Development Kit (JDK) - is a program development
environment for writing Java applets and applications.
(USE THIS TO BUILD ANDROID APPS :DDD)
OBJECT ORIENTED PROGRAMMING (OPP)
Programming language based around real world objects (ie cars,
people, etc).
Code is grouped into objects so they can be easily reused.
This avoids having to write the same code multiple times.
Object Oriented Programming is often referred to by using OOP
as the shortened version.
AN OBJECT HAS PROPERTIES
Imagine an object that most people can relate to, a car.
How can we describe a car?
Well, it has attributes such as:
•Color
•Make
•Model
•Year
•Mileage
•VIN
Each of these attributes make every
car what it is. In OOP, attributes, the
features that describe an object, are
called properties.
The next question is, what are the actions a car can do, or can be
done to the car? Let’s take some of the obvious ones:
• Turn the car on
• Turn the car off
• Accelerate
• Brake
In OOP, these actions are called methods. They allow the objects
to do things. These methods also can provide a way to change
the properties of the object.
AN OBJECT HAS METHODS
THE CAR OBJECT
In our example, the car is a grouping of properties and methods.
Your car is different than your neighbors car. However, they
both would share the same properties and methods.
OOP allows these logical groupings to happen.
CREATING AN OBJECT
In Java, to create an object you use a special method called a
constructor.
Once you have created an object, you now have an instance of
that object. This process is known as instantiation.
In our example, if you create a new car, that car is an instance of
the car object. Your neighbor also has an instance of a car
object. They both are similar things, but are completely
different cars.
WHAT IS A CLASS?
In Java, an object can also be called a class.
In our example, our Car Class applies to all instances of cars that
have already been created, as well as all cars that will be
created in the future.
SUBCLASSES IN JAVA
- A class can be broken down even further into a subclass.
- This allows the better organization of objects.
- In our example, we can have subclasses for Cars, Trucks, and
Busses.
- All of these are considered vehicles and share many of the
same properties and methods.
- This means we can use Vehicle, as the parent class. This makes
Cars, Trucks, and Busses, subclasses.
OPP EXAMPLE
Vehicle
TruckCar Bus
SUBCLASSES CAN BE DIFFERENT
- Not all subclasses are the same.
- For example, a Bus may need to have methods for unloading
and loading passengers.
- A Truck may need properties to keep track of how much
weight it can tow
- Subclasses already have access to the properties and methods
of the parent class.
- As an example Cars, Trucks, and Busses can all use the same
accelerate or brake methods that are defined in the Vehicle
Class, but are given the flexiblity to add their own.
- This concept is called inheritance
OOP SIMPLIFIED
- In simple terms, OOP is just a method for building reusable
objects (called classes).
- Objects are everywhere in your daily life, vehicles, books,
desks, computers, etc.
- Java takes that approach when building programs. This allows
you to write less code and reuse the objects you have already
created.
OOP SUMMARY
- Objects (classes) consist of properties and methods
- Constructors are used to create objects
- Subclassing and inheritance can help you save time by reusing
and better organizing your code
JAVA SYNTAX
In computer science, the syntax of a programming language is
the set of rules that define the combinations of symbols that
are considered to be correctly structured programs in that
language.
SYNTAX BROKEN DOWN
Syntax is broken down into four parts
1. Variable type
a. Examples: Integer (number), string (letters)
2. Variable name
a. Consist of any combination of letters and numbers
b. The only special character allowed is an underscore (_)
3. Value
a. Value the variable will hold
b. Strings are defined by wrapping in quotes (" ")
4. Ending mark
a. Marks the code as complete
b. Denoted in Java with a semicolon (;)
SYNTAX EXAMPLE
In this example, a variable type of string is used (strings are used to
store letters). This variable is given the name helloVariable (this is
determined by the developer). The equal sign states that the
helloVariable will equal the value which is set to "Hello Everyone!". In
other words when the helloVariable name is called, it will output the
value of Hello Everyone! Finally, the semicolon closes out the code
statement.
Variable type - String
Variable name - helloVariable
Variable value - "Hello Everyone!"
Ending mark - ; (semicolon)
SEMANTICS
- What the code actually means
- Different programming languages have different syntax, but
the semantics (meaning) of the code is essentially the same
COMPILING PROCESS
When first writing Java code all code is written in plain text files ending in
.java (this is just a file extension similar to .doc for Word documents).
Once the Java code is written it has to be compiled or made smaller. This
allows your program to run more efficiently. This is done through a Java
Development Kit.
After compiling is done a .class file is created. Code within the .class file
contains bytecodes (zeros and ones).
The Java Virtual Machine (JVM) is then used to allow you to run your
program on your computer.
SUMMARY
- Java is one of the most popular programming languages
- Java is an Object Oriented Programming (OOP) language
- Syntax is broken down into four parts; variable type, variable
name, value, and ending mark.
- After writing Java code, it is compiled and run through a Java
Virtual Machine (JVM)

More Related Content

What's hot (20)

Features of java
Features of javaFeatures of java
Features of java
laratechnologies
 
00 intro to java
00 intro to java00 intro to java
00 intro to java
Deia Abdullah
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
Professional Guru
 
Java Presentation
Java PresentationJava Presentation
Java Presentation
pm2214
 
Bn1005 demo ppt core java
Bn1005 demo ppt core javaBn1005 demo ppt core java
Bn1005 demo ppt core java
conline training
 
What is java?-Saurabh Upadhyay
What is java?-Saurabh UpadhyayWhat is java?-Saurabh Upadhyay
What is java?-Saurabh Upadhyay
Saurabh Upadhyay
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
Sujit Majety
 
computer science JAVA ppt
computer science JAVA pptcomputer science JAVA ppt
computer science JAVA ppt
brijesh kumar
 
Presentation5
Presentation5Presentation5
Presentation5
Natasha Bains
 
Introduction to Java Programming Language
Introduction to Java Programming LanguageIntroduction to Java Programming Language
Introduction to Java Programming Language
jaimefrozr
 
Java Programming
Java ProgrammingJava Programming
Java Programming
Elizabeth alexander
 
Core java course syllabus
Core java course syllabusCore java course syllabus
Core java course syllabus
Papitha Velumani
 
Java and its features
Java and its featuresJava and its features
Java and its features
Pydi Nikhil
 
Java Tokens
Java  TokensJava  Tokens
Java Tokens
Madishetty Prathibha
 
Programming in Java
Programming in JavaProgramming in Java
Programming in Java
Abhilash Nair
 
Presentation on java (8)
Presentation on java (8)Presentation on java (8)
Presentation on java (8)
Shwetakant1
 
Object Oriented Programming in Java
Object Oriented Programming in JavaObject Oriented Programming in Java
Object Oriented Programming in Java
HimanshiSingh71
 
Core java
Core java Core java
Core java
Shubham singh
 
Java basics
Java basicsJava basics
Java basics
suraj pandey
 
Structure programming – Java Programming – Theory
Structure programming – Java Programming – TheoryStructure programming – Java Programming – Theory
Structure programming – Java Programming – Theory
OXUS 20
 
Java Presentation
Java PresentationJava Presentation
Java Presentation
pm2214
 
What is java?-Saurabh Upadhyay
What is java?-Saurabh UpadhyayWhat is java?-Saurabh Upadhyay
What is java?-Saurabh Upadhyay
Saurabh Upadhyay
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
Sujit Majety
 
computer science JAVA ppt
computer science JAVA pptcomputer science JAVA ppt
computer science JAVA ppt
brijesh kumar
 
Introduction to Java Programming Language
Introduction to Java Programming LanguageIntroduction to Java Programming Language
Introduction to Java Programming Language
jaimefrozr
 
Java and its features
Java and its featuresJava and its features
Java and its features
Pydi Nikhil
 
Presentation on java (8)
Presentation on java (8)Presentation on java (8)
Presentation on java (8)
Shwetakant1
 
Object Oriented Programming in Java
Object Oriented Programming in JavaObject Oriented Programming in Java
Object Oriented Programming in Java
HimanshiSingh71
 
Structure programming – Java Programming – Theory
Structure programming – Java Programming – TheoryStructure programming – Java Programming – Theory
Structure programming – Java Programming – Theory
OXUS 20
 

Viewers also liked (20)

Java programming
Java programmingJava programming
Java programming
Trinity Dwarka
 
JavaCro'15 - HUJAKing – Expansion of Java Community - Branko Mihaljević, Alek...
JavaCro'15 - HUJAKing – Expansion of Java Community - Branko Mihaljević, Alek...JavaCro'15 - HUJAKing – Expansion of Java Community - Branko Mihaljević, Alek...
JavaCro'15 - HUJAKing – Expansion of Java Community - Branko Mihaljević, Alek...
HUJAK - Hrvatska udruga Java korisnika / Croatian Java User Association
 
2java Oop
2java Oop2java Oop
2java Oop
Adil Jafri
 
Functional Programming in Java 8 - Exploiting Lambdas
Functional Programming in Java 8 - Exploiting LambdasFunctional Programming in Java 8 - Exploiting Lambdas
Functional Programming in Java 8 - Exploiting Lambdas
Ganesh Samarthyam
 
Lambda functions in java 8
Lambda functions in java 8Lambda functions in java 8
Lambda functions in java 8
James Brown
 
Functional Programming in Java
Functional Programming in JavaFunctional Programming in Java
Functional Programming in Java
Narendran Solai Sridharan
 
2ndQuarter2ndMeeting(formatting number)
2ndQuarter2ndMeeting(formatting number)2ndQuarter2ndMeeting(formatting number)
2ndQuarter2ndMeeting(formatting number)
Esmeraldo Jr Guimbarda
 
java script functions, classes
java script functions, classesjava script functions, classes
java script functions, classes
Vijay Kalyan
 
TM 2nd qtr-3ndmeeting(java script-functions)
TM 2nd qtr-3ndmeeting(java script-functions)TM 2nd qtr-3ndmeeting(java script-functions)
TM 2nd qtr-3ndmeeting(java script-functions)
Esmeraldo Jr Guimbarda
 
Week 5 java script functions
Week 5  java script functionsWeek 5  java script functions
Week 5 java script functions
brianjihoonlee
 
Java Script - Object-Oriented Programming
Java Script - Object-Oriented ProgrammingJava Script - Object-Oriented Programming
Java Script - Object-Oriented Programming
intive
 
Fp java8
Fp java8Fp java8
Fp java8
Yanai Franchi
 
Understanding Java 8 Lambdas and Streams - Part 1 - Lambda Calculus, Lambda...
Understanding Java 8 Lambdas and Streams - Part 1 - Lambda Calculus, Lambda...Understanding Java 8 Lambdas and Streams - Part 1 - Lambda Calculus, Lambda...
Understanding Java 8 Lambdas and Streams - Part 1 - Lambda Calculus, Lambda...
Philip Schwarz
 
Functions in javascript
Functions in javascriptFunctions in javascript
Functions in javascript
baabtra.com - No. 1 supplier of quality freshers
 
JavaScript Functions
JavaScript Functions JavaScript Functions
JavaScript Functions
Reem Alattas
 
Functional programming with Java 8
Functional programming with Java 8Functional programming with Java 8
Functional programming with Java 8
Talha Ocakçı
 
Functional Javascript
Functional JavascriptFunctional Javascript
Functional Javascript
guest4d57e6
 
JavaScript Functions
JavaScript FunctionsJavaScript Functions
JavaScript Functions
Colin DeCarlo
 
Functional programming in java
Functional programming in javaFunctional programming in java
Functional programming in java
John Ferguson Smart Limited
 
Programming
ProgrammingProgramming
Programming
Sean Chia
 
Functional Programming in Java 8 - Exploiting Lambdas
Functional Programming in Java 8 - Exploiting LambdasFunctional Programming in Java 8 - Exploiting Lambdas
Functional Programming in Java 8 - Exploiting Lambdas
Ganesh Samarthyam
 
Lambda functions in java 8
Lambda functions in java 8Lambda functions in java 8
Lambda functions in java 8
James Brown
 
2ndQuarter2ndMeeting(formatting number)
2ndQuarter2ndMeeting(formatting number)2ndQuarter2ndMeeting(formatting number)
2ndQuarter2ndMeeting(formatting number)
Esmeraldo Jr Guimbarda
 
java script functions, classes
java script functions, classesjava script functions, classes
java script functions, classes
Vijay Kalyan
 
TM 2nd qtr-3ndmeeting(java script-functions)
TM 2nd qtr-3ndmeeting(java script-functions)TM 2nd qtr-3ndmeeting(java script-functions)
TM 2nd qtr-3ndmeeting(java script-functions)
Esmeraldo Jr Guimbarda
 
Week 5 java script functions
Week 5  java script functionsWeek 5  java script functions
Week 5 java script functions
brianjihoonlee
 
Java Script - Object-Oriented Programming
Java Script - Object-Oriented ProgrammingJava Script - Object-Oriented Programming
Java Script - Object-Oriented Programming
intive
 
Understanding Java 8 Lambdas and Streams - Part 1 - Lambda Calculus, Lambda...
Understanding Java 8 Lambdas and Streams - Part 1 - Lambda Calculus, Lambda...Understanding Java 8 Lambdas and Streams - Part 1 - Lambda Calculus, Lambda...
Understanding Java 8 Lambdas and Streams - Part 1 - Lambda Calculus, Lambda...
Philip Schwarz
 
JavaScript Functions
JavaScript Functions JavaScript Functions
JavaScript Functions
Reem Alattas
 
Functional programming with Java 8
Functional programming with Java 8Functional programming with Java 8
Functional programming with Java 8
Talha Ocakçı
 
Functional Javascript
Functional JavascriptFunctional Javascript
Functional Javascript
guest4d57e6
 
JavaScript Functions
JavaScript FunctionsJavaScript Functions
JavaScript Functions
Colin DeCarlo
 
Ad

Similar to 02 java programming basic (20)

Elements of Java Language
Elements of Java Language Elements of Java Language
Elements of Java Language
Hitesh-Java
 
PJ_M01_C01_PPT_Introduction to Object Oriented Programming Using Java.pdf
PJ_M01_C01_PPT_Introduction to Object Oriented Programming Using Java.pdfPJ_M01_C01_PPT_Introduction to Object Oriented Programming Using Java.pdf
PJ_M01_C01_PPT_Introduction to Object Oriented Programming Using Java.pdf
projectfora2
 
Session 02 - Elements of Java Language
Session 02 - Elements of Java LanguageSession 02 - Elements of Java Language
Session 02 - Elements of Java Language
PawanMM
 
Java presentation
Java presentationJava presentation
Java presentation
Karan Sareen
 
Java
JavaJava
Java
Harsha Madushanka
 
Beginning Java with WebSphere Expert s Voice in Java Janson Robert W
Beginning Java with WebSphere Expert s Voice in Java Janson Robert WBeginning Java with WebSphere Expert s Voice in Java Janson Robert W
Beginning Java with WebSphere Expert s Voice in Java Janson Robert W
kuclermialee
 
Core Java Slides
Core Java SlidesCore Java Slides
Core Java Slides
Vinit Vyas
 
Lecture 1.1 - Introducing Java.pptx3eeeee
Lecture 1.1 - Introducing Java.pptx3eeeeeLecture 1.1 - Introducing Java.pptx3eeeee
Lecture 1.1 - Introducing Java.pptx3eeeee
SaziaSharmin2
 
Java1
Java1Java1
Java1
computertuitions
 
Java
Java Java
Java
computertuitions
 
Introduction to Java.pptx sjskmdkdmdkdmdkdkd
Introduction to Java.pptx sjskmdkdmdkdmdkdkdIntroduction to Java.pptx sjskmdkdmdkdmdkdkd
Introduction to Java.pptx sjskmdkdmdkdmdkdkd
giresumit9
 
Java_presesntation.ppt
Java_presesntation.pptJava_presesntation.ppt
Java_presesntation.ppt
VGaneshKarthikeyan
 
Java Programming Tutorials Basic to Advanced 1
Java Programming Tutorials Basic to Advanced 1Java Programming Tutorials Basic to Advanced 1
Java Programming Tutorials Basic to Advanced 1
JALALUDHEENVK1
 
Sybsc cs sem 3 core java
Sybsc cs sem 3 core javaSybsc cs sem 3 core java
Sybsc cs sem 3 core java
WE-IT TUTORIALS
 
Introduction to Java Programming, Basic Structure, variables Data type, input...
Introduction to Java Programming, Basic Structure, variables Data type, input...Introduction to Java Programming, Basic Structure, variables Data type, input...
Introduction to Java Programming, Basic Structure, variables Data type, input...
Mr. Akaash
 
Java
JavaJava
Java
Snehal Shahane
 
Unit1 introduction to Java
Unit1 introduction to JavaUnit1 introduction to Java
Unit1 introduction to Java
DevaKumari Vijay
 
Introduction to Java Programming.pdf
Introduction to Java Programming.pdfIntroduction to Java Programming.pdf
Introduction to Java Programming.pdf
AdiseshaK
 
Introduction to java
Introduction to  javaIntroduction to  java
Introduction to java
Kalai Selvi
 
Core java slides
Core java slidesCore java slides
Core java slides
Abhilash Nair
 
Elements of Java Language
Elements of Java Language Elements of Java Language
Elements of Java Language
Hitesh-Java
 
PJ_M01_C01_PPT_Introduction to Object Oriented Programming Using Java.pdf
PJ_M01_C01_PPT_Introduction to Object Oriented Programming Using Java.pdfPJ_M01_C01_PPT_Introduction to Object Oriented Programming Using Java.pdf
PJ_M01_C01_PPT_Introduction to Object Oriented Programming Using Java.pdf
projectfora2
 
Session 02 - Elements of Java Language
Session 02 - Elements of Java LanguageSession 02 - Elements of Java Language
Session 02 - Elements of Java Language
PawanMM
 
Beginning Java with WebSphere Expert s Voice in Java Janson Robert W
Beginning Java with WebSphere Expert s Voice in Java Janson Robert WBeginning Java with WebSphere Expert s Voice in Java Janson Robert W
Beginning Java with WebSphere Expert s Voice in Java Janson Robert W
kuclermialee
 
Core Java Slides
Core Java SlidesCore Java Slides
Core Java Slides
Vinit Vyas
 
Lecture 1.1 - Introducing Java.pptx3eeeee
Lecture 1.1 - Introducing Java.pptx3eeeeeLecture 1.1 - Introducing Java.pptx3eeeee
Lecture 1.1 - Introducing Java.pptx3eeeee
SaziaSharmin2
 
Introduction to Java.pptx sjskmdkdmdkdmdkdkd
Introduction to Java.pptx sjskmdkdmdkdmdkdkdIntroduction to Java.pptx sjskmdkdmdkdmdkdkd
Introduction to Java.pptx sjskmdkdmdkdmdkdkd
giresumit9
 
Java Programming Tutorials Basic to Advanced 1
Java Programming Tutorials Basic to Advanced 1Java Programming Tutorials Basic to Advanced 1
Java Programming Tutorials Basic to Advanced 1
JALALUDHEENVK1
 
Sybsc cs sem 3 core java
Sybsc cs sem 3 core javaSybsc cs sem 3 core java
Sybsc cs sem 3 core java
WE-IT TUTORIALS
 
Introduction to Java Programming, Basic Structure, variables Data type, input...
Introduction to Java Programming, Basic Structure, variables Data type, input...Introduction to Java Programming, Basic Structure, variables Data type, input...
Introduction to Java Programming, Basic Structure, variables Data type, input...
Mr. Akaash
 
Unit1 introduction to Java
Unit1 introduction to JavaUnit1 introduction to Java
Unit1 introduction to Java
DevaKumari Vijay
 
Introduction to Java Programming.pdf
Introduction to Java Programming.pdfIntroduction to Java Programming.pdf
Introduction to Java Programming.pdf
AdiseshaK
 
Introduction to java
Introduction to  javaIntroduction to  java
Introduction to java
Kalai Selvi
 
Ad

More from Zeeshan-Shaikh (6)

12 installing eclipse
12   installing eclipse12   installing eclipse
12 installing eclipse
Zeeshan-Shaikh
 
07 java variables
07   java variables07   java variables
07 java variables
Zeeshan-Shaikh
 
06 java methods
06 java methods06 java methods
06 java methods
Zeeshan-Shaikh
 
03 eclipse basics & hello world
03   eclipse basics & hello world03   eclipse basics & hello world
03 eclipse basics & hello world
Zeeshan-Shaikh
 
Thinking like a programmer presentation
Thinking like a programmer presentationThinking like a programmer presentation
Thinking like a programmer presentation
Zeeshan-Shaikh
 
Girls tech club presentation
Girls tech club presentationGirls tech club presentation
Girls tech club presentation
Zeeshan-Shaikh
 
03 eclipse basics & hello world
03   eclipse basics & hello world03   eclipse basics & hello world
03 eclipse basics & hello world
Zeeshan-Shaikh
 
Thinking like a programmer presentation
Thinking like a programmer presentationThinking like a programmer presentation
Thinking like a programmer presentation
Zeeshan-Shaikh
 
Girls tech club presentation
Girls tech club presentationGirls tech club presentation
Girls tech club presentation
Zeeshan-Shaikh
 

Recently uploaded (20)

SEW make Brake BE05 – BE30 Brake – Repair Kit
SEW make Brake BE05 – BE30 Brake – Repair KitSEW make Brake BE05 – BE30 Brake – Repair Kit
SEW make Brake BE05 – BE30 Brake – Repair Kit
projectultramechanix
 
Transformimet e sinjaleve numerike duke perdorur transformimet
Transformimet  e sinjaleve numerike duke perdorur transformimetTransformimet  e sinjaleve numerike duke perdorur transformimet
Transformimet e sinjaleve numerike duke perdorur transformimet
IndritEnesi1
 
Tree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbb
Tree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbbTree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbb
Tree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbb
RATNANITINPATIL
 
FISICA ESTATICA DESING LOADS CAPITULO 2.
FISICA ESTATICA DESING LOADS CAPITULO 2.FISICA ESTATICA DESING LOADS CAPITULO 2.
FISICA ESTATICA DESING LOADS CAPITULO 2.
maldonadocesarmanuel
 
Class-Symbols for vessels ships shipyards.pdf
Class-Symbols for vessels ships shipyards.pdfClass-Symbols for vessels ships shipyards.pdf
Class-Symbols for vessels ships shipyards.pdf
takisvlastos
 
fy06_46f6-ht30_22_oil_gas_industry_guidelines.ppt
fy06_46f6-ht30_22_oil_gas_industry_guidelines.pptfy06_46f6-ht30_22_oil_gas_industry_guidelines.ppt
fy06_46f6-ht30_22_oil_gas_industry_guidelines.ppt
sukarnoamin
 
Irja Straus - Beyond Pass and Fail - DevTalks.pdf
Irja Straus - Beyond Pass and Fail - DevTalks.pdfIrja Straus - Beyond Pass and Fail - DevTalks.pdf
Irja Straus - Beyond Pass and Fail - DevTalks.pdf
Irja Straus
 
New Microsoft Office Word Documentfrf.docx
New Microsoft Office Word Documentfrf.docxNew Microsoft Office Word Documentfrf.docx
New Microsoft Office Word Documentfrf.docx
misheetasah
 
Call For Papers - International Journal on Natural Language Computing (IJNLC)
Call For Papers - International Journal on Natural Language Computing (IJNLC)Call For Papers - International Journal on Natural Language Computing (IJNLC)
Call For Papers - International Journal on Natural Language Computing (IJNLC)
kevig
 
Axial Capacity Estimation of FRP-strengthened Corroded Concrete Columns
Axial Capacity Estimation of FRP-strengthened Corroded Concrete ColumnsAxial Capacity Estimation of FRP-strengthened Corroded Concrete Columns
Axial Capacity Estimation of FRP-strengthened Corroded Concrete Columns
Journal of Soft Computing in Civil Engineering
 
Software Engineering Project Presentation Tanisha Tasnuva
Software Engineering Project Presentation Tanisha TasnuvaSoftware Engineering Project Presentation Tanisha Tasnuva
Software Engineering Project Presentation Tanisha Tasnuva
tanishatasnuva76
 
22PCOAM16 _ML_Unit 3 Notes & Question bank
22PCOAM16 _ML_Unit 3 Notes & Question bank22PCOAM16 _ML_Unit 3 Notes & Question bank
22PCOAM16 _ML_Unit 3 Notes & Question bank
Guru Nanak Technical Institutions
 
PREDICTION OF ROOM TEMPERATURE SIDEEFFECT DUE TOFAST DEMAND RESPONSEFOR BUILD...
PREDICTION OF ROOM TEMPERATURE SIDEEFFECT DUE TOFAST DEMAND RESPONSEFOR BUILD...PREDICTION OF ROOM TEMPERATURE SIDEEFFECT DUE TOFAST DEMAND RESPONSEFOR BUILD...
PREDICTION OF ROOM TEMPERATURE SIDEEFFECT DUE TOFAST DEMAND RESPONSEFOR BUILD...
ijccmsjournal
 
Artificial Power 2025 raport krajobrazowy
Artificial Power 2025 raport krajobrazowyArtificial Power 2025 raport krajobrazowy
Artificial Power 2025 raport krajobrazowy
dominikamizerska1
 
Third Review PPT that consists of the project d etails like abstract.
Third Review PPT that consists of the project d etails like abstract.Third Review PPT that consists of the project d etails like abstract.
Third Review PPT that consists of the project d etails like abstract.
Sowndarya6
 
Rearchitecturing a 9-year-old legacy Laravel application.pdf
Rearchitecturing a 9-year-old legacy Laravel application.pdfRearchitecturing a 9-year-old legacy Laravel application.pdf
Rearchitecturing a 9-year-old legacy Laravel application.pdf
Takumi Amitani
 
Top Cite Articles- International Journal on Soft Computing, Artificial Intell...
Top Cite Articles- International Journal on Soft Computing, Artificial Intell...Top Cite Articles- International Journal on Soft Computing, Artificial Intell...
Top Cite Articles- International Journal on Soft Computing, Artificial Intell...
ijscai
 
社内勉強会資料_Chain of Thought .
社内勉強会資料_Chain of Thought                           .社内勉強会資料_Chain of Thought                           .
社内勉強会資料_Chain of Thought .
NABLAS株式会社
 
International Journal of Advance Robotics & Expert Systems (JARES)
International Journal of Advance Robotics & Expert Systems (JARES)International Journal of Advance Robotics & Expert Systems (JARES)
International Journal of Advance Robotics & Expert Systems (JARES)
jaresjournal868
 
Presentación Tomografía Axial Computarizada
Presentación Tomografía Axial ComputarizadaPresentación Tomografía Axial Computarizada
Presentación Tomografía Axial Computarizada
Juliana Ovalle Jiménez
 
SEW make Brake BE05 – BE30 Brake – Repair Kit
SEW make Brake BE05 – BE30 Brake – Repair KitSEW make Brake BE05 – BE30 Brake – Repair Kit
SEW make Brake BE05 – BE30 Brake – Repair Kit
projectultramechanix
 
Transformimet e sinjaleve numerike duke perdorur transformimet
Transformimet  e sinjaleve numerike duke perdorur transformimetTransformimet  e sinjaleve numerike duke perdorur transformimet
Transformimet e sinjaleve numerike duke perdorur transformimet
IndritEnesi1
 
Tree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbb
Tree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbbTree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbb
Tree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbb
RATNANITINPATIL
 
FISICA ESTATICA DESING LOADS CAPITULO 2.
FISICA ESTATICA DESING LOADS CAPITULO 2.FISICA ESTATICA DESING LOADS CAPITULO 2.
FISICA ESTATICA DESING LOADS CAPITULO 2.
maldonadocesarmanuel
 
Class-Symbols for vessels ships shipyards.pdf
Class-Symbols for vessels ships shipyards.pdfClass-Symbols for vessels ships shipyards.pdf
Class-Symbols for vessels ships shipyards.pdf
takisvlastos
 
fy06_46f6-ht30_22_oil_gas_industry_guidelines.ppt
fy06_46f6-ht30_22_oil_gas_industry_guidelines.pptfy06_46f6-ht30_22_oil_gas_industry_guidelines.ppt
fy06_46f6-ht30_22_oil_gas_industry_guidelines.ppt
sukarnoamin
 
Irja Straus - Beyond Pass and Fail - DevTalks.pdf
Irja Straus - Beyond Pass and Fail - DevTalks.pdfIrja Straus - Beyond Pass and Fail - DevTalks.pdf
Irja Straus - Beyond Pass and Fail - DevTalks.pdf
Irja Straus
 
New Microsoft Office Word Documentfrf.docx
New Microsoft Office Word Documentfrf.docxNew Microsoft Office Word Documentfrf.docx
New Microsoft Office Word Documentfrf.docx
misheetasah
 
Call For Papers - International Journal on Natural Language Computing (IJNLC)
Call For Papers - International Journal on Natural Language Computing (IJNLC)Call For Papers - International Journal on Natural Language Computing (IJNLC)
Call For Papers - International Journal on Natural Language Computing (IJNLC)
kevig
 
Software Engineering Project Presentation Tanisha Tasnuva
Software Engineering Project Presentation Tanisha TasnuvaSoftware Engineering Project Presentation Tanisha Tasnuva
Software Engineering Project Presentation Tanisha Tasnuva
tanishatasnuva76
 
PREDICTION OF ROOM TEMPERATURE SIDEEFFECT DUE TOFAST DEMAND RESPONSEFOR BUILD...
PREDICTION OF ROOM TEMPERATURE SIDEEFFECT DUE TOFAST DEMAND RESPONSEFOR BUILD...PREDICTION OF ROOM TEMPERATURE SIDEEFFECT DUE TOFAST DEMAND RESPONSEFOR BUILD...
PREDICTION OF ROOM TEMPERATURE SIDEEFFECT DUE TOFAST DEMAND RESPONSEFOR BUILD...
ijccmsjournal
 
Artificial Power 2025 raport krajobrazowy
Artificial Power 2025 raport krajobrazowyArtificial Power 2025 raport krajobrazowy
Artificial Power 2025 raport krajobrazowy
dominikamizerska1
 
Third Review PPT that consists of the project d etails like abstract.
Third Review PPT that consists of the project d etails like abstract.Third Review PPT that consists of the project d etails like abstract.
Third Review PPT that consists of the project d etails like abstract.
Sowndarya6
 
Rearchitecturing a 9-year-old legacy Laravel application.pdf
Rearchitecturing a 9-year-old legacy Laravel application.pdfRearchitecturing a 9-year-old legacy Laravel application.pdf
Rearchitecturing a 9-year-old legacy Laravel application.pdf
Takumi Amitani
 
Top Cite Articles- International Journal on Soft Computing, Artificial Intell...
Top Cite Articles- International Journal on Soft Computing, Artificial Intell...Top Cite Articles- International Journal on Soft Computing, Artificial Intell...
Top Cite Articles- International Journal on Soft Computing, Artificial Intell...
ijscai
 
社内勉強会資料_Chain of Thought .
社内勉強会資料_Chain of Thought                           .社内勉強会資料_Chain of Thought                           .
社内勉強会資料_Chain of Thought .
NABLAS株式会社
 
International Journal of Advance Robotics & Expert Systems (JARES)
International Journal of Advance Robotics & Expert Systems (JARES)International Journal of Advance Robotics & Expert Systems (JARES)
International Journal of Advance Robotics & Expert Systems (JARES)
jaresjournal868
 
Presentación Tomografía Axial Computarizada
Presentación Tomografía Axial ComputarizadaPresentación Tomografía Axial Computarizada
Presentación Tomografía Axial Computarizada
Juliana Ovalle Jiménez
 

02 java programming basic

  • 1. IHS GIRLS TECH CLUB • JAVA PROGRAMMING BASICS IHS GIRLS TECH CLUB: JAVA PROGRAMMING BASICS
  • 2. A PROGRAMMING LANGUAGE IS... • A language designed for programming computers • Consists of a combination of variables, functions, methods, and instructions for controlling actions in a computer system • Follows a specific syntax for controlling the behavior of a computer or machine • Thousands of different programming languages have been created, with many more being created every year • Description of a programming language is usually split into the two components of syntax (form) and semantics (meaning)
  • 3. POPULAR PROGRAMMING LANGUAGES 1. Java – 19.1% (Android) 2. C – 15.2% (iOS uses a version called Objective-C) 3. C++ – 10.1% 4. PHP – 8.7% 5. Visual Basic – 8.4% 6. Perl – 6.2% 7. Python – 3.8% 8. C# – 3.7% (Windows Mobile) 9. JavaScript – 3.1% 10. Ruby – 2.6% 11. Delphi – 2.1%
  • 4. WHAT IS JAVA? • A trademark used for a programming language designed to develop applications, especially ones for the Internet, that can operate on different platforms • Created in 1991 by Sun Microsystems Popular programs built in Java
  • 5. JAVA PROS AND CONS Pros • Free to use • Cross Platform (write once, run everywhere) • Smaller learning curve (get started faster) Cons • Performance in comparison with some other languages • History of security vulnerabilities
  • 6. WHERE JAVA IS BEING USED e-Commerce Websites Computer Desktop Programs Mobile Applications Websites and Web games
  • 7. TOOLS TO USE WITH JAVA Code Editor • A source code editor is a text editor program designed specifically for editing source code of computer programs by programmers. Popular Code Editors • Eclipse • Netbeans • Komodo • Notepad++ • Textmate
  • 8. TOOLS TO USE WITH JAVA Java Virtual Machine (JVM) - Used for running Java code Java Development Kit (JDK) - is a program development environment for writing Java applets and applications. (USE THIS TO BUILD ANDROID APPS :DDD)
  • 9. OBJECT ORIENTED PROGRAMMING (OPP) Programming language based around real world objects (ie cars, people, etc). Code is grouped into objects so they can be easily reused. This avoids having to write the same code multiple times. Object Oriented Programming is often referred to by using OOP as the shortened version.
  • 10. AN OBJECT HAS PROPERTIES Imagine an object that most people can relate to, a car. How can we describe a car?
  • 11. Well, it has attributes such as: •Color •Make •Model •Year •Mileage •VIN Each of these attributes make every car what it is. In OOP, attributes, the features that describe an object, are called properties.
  • 12. The next question is, what are the actions a car can do, or can be done to the car? Let’s take some of the obvious ones: • Turn the car on • Turn the car off • Accelerate • Brake In OOP, these actions are called methods. They allow the objects to do things. These methods also can provide a way to change the properties of the object. AN OBJECT HAS METHODS
  • 13. THE CAR OBJECT In our example, the car is a grouping of properties and methods. Your car is different than your neighbors car. However, they both would share the same properties and methods. OOP allows these logical groupings to happen.
  • 14. CREATING AN OBJECT In Java, to create an object you use a special method called a constructor. Once you have created an object, you now have an instance of that object. This process is known as instantiation. In our example, if you create a new car, that car is an instance of the car object. Your neighbor also has an instance of a car object. They both are similar things, but are completely different cars.
  • 15. WHAT IS A CLASS? In Java, an object can also be called a class. In our example, our Car Class applies to all instances of cars that have already been created, as well as all cars that will be created in the future.
  • 16. SUBCLASSES IN JAVA - A class can be broken down even further into a subclass. - This allows the better organization of objects. - In our example, we can have subclasses for Cars, Trucks, and Busses. - All of these are considered vehicles and share many of the same properties and methods. - This means we can use Vehicle, as the parent class. This makes Cars, Trucks, and Busses, subclasses.
  • 18. SUBCLASSES CAN BE DIFFERENT - Not all subclasses are the same. - For example, a Bus may need to have methods for unloading and loading passengers. - A Truck may need properties to keep track of how much weight it can tow - Subclasses already have access to the properties and methods of the parent class. - As an example Cars, Trucks, and Busses can all use the same accelerate or brake methods that are defined in the Vehicle Class, but are given the flexiblity to add their own. - This concept is called inheritance
  • 19. OOP SIMPLIFIED - In simple terms, OOP is just a method for building reusable objects (called classes). - Objects are everywhere in your daily life, vehicles, books, desks, computers, etc. - Java takes that approach when building programs. This allows you to write less code and reuse the objects you have already created.
  • 20. OOP SUMMARY - Objects (classes) consist of properties and methods - Constructors are used to create objects - Subclassing and inheritance can help you save time by reusing and better organizing your code
  • 21. JAVA SYNTAX In computer science, the syntax of a programming language is the set of rules that define the combinations of symbols that are considered to be correctly structured programs in that language.
  • 22. SYNTAX BROKEN DOWN Syntax is broken down into four parts 1. Variable type a. Examples: Integer (number), string (letters) 2. Variable name a. Consist of any combination of letters and numbers b. The only special character allowed is an underscore (_) 3. Value a. Value the variable will hold b. Strings are defined by wrapping in quotes (" ") 4. Ending mark a. Marks the code as complete b. Denoted in Java with a semicolon (;)
  • 23. SYNTAX EXAMPLE In this example, a variable type of string is used (strings are used to store letters). This variable is given the name helloVariable (this is determined by the developer). The equal sign states that the helloVariable will equal the value which is set to "Hello Everyone!". In other words when the helloVariable name is called, it will output the value of Hello Everyone! Finally, the semicolon closes out the code statement. Variable type - String Variable name - helloVariable Variable value - "Hello Everyone!" Ending mark - ; (semicolon)
  • 24. SEMANTICS - What the code actually means - Different programming languages have different syntax, but the semantics (meaning) of the code is essentially the same
  • 25. COMPILING PROCESS When first writing Java code all code is written in plain text files ending in .java (this is just a file extension similar to .doc for Word documents). Once the Java code is written it has to be compiled or made smaller. This allows your program to run more efficiently. This is done through a Java Development Kit. After compiling is done a .class file is created. Code within the .class file contains bytecodes (zeros and ones). The Java Virtual Machine (JVM) is then used to allow you to run your program on your computer.
  • 26. SUMMARY - Java is one of the most popular programming languages - Java is an Object Oriented Programming (OOP) language - Syntax is broken down into four parts; variable type, variable name, value, and ending mark. - After writing Java code, it is compiled and run through a Java Virtual Machine (JVM)

Editor's Notes

  • #3: http://en.wikipedia.org/wiki/Programming_language
  • #4: http://www.devtopics.com/most-popular-programming-languages/
  • #5: http://uniquecopywriter.hubpages.com/hub/Top-10-Javas-Apps-Globally-Recognized-and-Appreciated