SlideShare a Scribd company logo
Using Java
MINISTRY OF EDUCATION & HIGHER EDUCATION
COLLEGE OF SCIENCE AND TECHNOLOGY
KHANYOUNIS- PALESTINE
 First Program in Java
 Discussion of the main concepts
 Install the JDK and JCreator
 Memory Concepts and DataTypes
 Variables and Identifiers
 Arithmetic Operations
 Emank X Mezank
2Presented & Prepared by: Mahmoud R. Alfarra
 Computer programmers create applications
by writing computer programs.
 Your e-mail application helps you send and receive e-mail
 yourWeb browser lets you view Web pages fromWeb sites
around the world.
 A Java application is a computer program
that executes when you use the java
command to launch the JavaVirtual Machine
(JVM).
3Presented & Prepared by: Mahmoud R. Alfarra
 Let us consider a simple application that
displays a line of text using Java command.
4Presented & Prepared by: Mahmoud R. Alfarra
 Every program in Java consists of at least one
class declaration that is defined by the
programmer.
 These are known as programmer-defined
classes or user-defined classes.
5Presented & Prepared by: Mahmoud R. Alfarra
 Java class declarations normally contain one
or more methods.
 For a Java application, exactly one of the
methods must be called main and must be
defined as shown
6Presented & Prepared by: Mahmoud R. Alfarra
It is a syntax error if braces do not occur in matching
pairs
 Instructions perform an action namely, to
print the string of characters contained
between the double quotation marks.
 We refer to characters between double
quotation marks simply as strings.
7Presented & Prepared by: Mahmoud R. Alfarra
 Method System.out.println displays a line of text in
the command window.
 The string in the parentheses is the argument to the
method.
8Presented & Prepared by: Mahmoud R. Alfarra
 Method print displays one line of text in the
command window and position the cursor next
the last character.
 Println position the output cursor at the
beginning of the next line in the command.
 begins with // or between /* */, indicating
that the remainder of the line is a comment.
 The Java compiler ignores comments.
9Presented & Prepared by: Mahmoud R. Alfarra
10Presented & Prepared by: Mahmoud R. Alfarra
Java is case sensitive. Not using the proper uppercase and
lowercase letters for an identifier normally causes a
compilation error.
It is an error for a public class to have a file name that is not
identical to the class name (plus the .java extension) in terms
of both spelling and capitalization.
Omitting the semicolon at the end of a statement is a syntax
error.
 From the sun site
▪ http://java.sun.com/javase/downloads/index.jsp.
 download jdk-6-windows-i586.exe
 Setup normally (next then next …)
 But be care where it will be installed in your
PC
11Presented & Prepared by: Mahmoud R. Alfarra
12Presented & Prepared by: Mahmoud R. Alfarra
 From the site of Jcreator or my web site
▪ http://www.jcreator.com/
▪ Staff.cst.ps/mfarra
 Download the JCreator Pro
 And then trace the following slides to setup …
‫إعداد‬/‫أ‬.
‫رفيق‬ ‫حممود‬
‫ا‬‫ر‬‫الف‬ ‫محدي‬
2010-
2011
4 programming-using-java intro-tojava20102011
4 programming-using-java intro-tojava20102011
4 programming-using-java intro-tojava20102011
4 programming-using-java intro-tojava20102011
1
2
3
4
5
6
7
Install the JDK and JCreator on your PC at home,
and then write a program that prints your name, ID,
GPA, addressHW 4.1
 Identifiers are names used to identify
variables, methods, classes …
 An identifier consist of letters,numbers, _ , $
 But must:
 Begin with letter.
 not contain space.
 not a reserved word
21Presented & Prepared by: Mahmoud R. Alfarra
 A variable is a location in the computer's
memory where a value can be stored for use
later in a program.
 All variables must be declared with a name
and a type before they can be used.
22Presented & Prepared by: Mahmoud R. Alfarra
Data type Identifiers
 Data types in Java are divided into two
categories primitive types and reference.
 A primitive-type variable can store exactly
one value of its declared type at a time.
 Every variable has a name, a type, a size and
a value.
23Presented & Prepared by: Mahmoud R. Alfarra
24Presented & Prepared by: Mahmoud R. Alfarra
0 0 0 1 1 1 0 0 ‫الذكرة‬ ‫من‬‫مقطع‬
‫يتم‬‫التعريف‬ ‫هذا‬ ‫بمجرد‬
‫الذاكرة‬ ‫في‬ ‫مساحة‬ ‫تخصيص‬
‫يناس‬ ‫بحجم‬‫بيانات‬ ‫لتخزين‬‫ب‬
‫اد‬‫ر‬‫امل‬‫النوع‬
Type1 x = 28 ; // ‫سعتها‬ ‫الذاكرة‬ ‫في‬ ‫مساحة‬‫تخصيص‬ ‫سيتم‬1‫بايت‬
Type2 y; // ‫سعتها‬ ‫الذاكرة‬ ‫في‬ ‫مساحة‬‫تخصيص‬ ‫سيتم‬2‫بايت‬
25Presented & Prepared by: Mahmoud R. Alfarra
TypeValues examplesSize
booleantrue, false1 Byte
char‘b’, ‘c’ , ‘t’, ‘5’, …2 byte
byte128, 0, 34, …1 byte
short32768, 67, 342 byte
int2147483648 , 7, 9, 0, …4 byte
long9223372036854775808, 878, …8 byte
float- 3.5, 234.56, …4 byte
double-2345.34, …8 byte
 Most programs perform arithmetic calculations.
 The arithmetic operators are
26Presented & Prepared by: Mahmoud R. Alfarra
 Java applies the operators in arithmetic expressions
in a precise sequence determined by the following
rules of operator precedence:
27Presented & Prepared by: Mahmoud R. Alfarra
28Presented & Prepared by: Mahmoud R. Alfarra
29Presented & Prepared by: Mahmoud R. Alfarra
30Presented & Prepared by: Mahmoud R. Alfarra
Some common escape sequences
31Presented & Prepared by: Mahmoud R. Alfarra
32Presented & Prepared by: Mahmoud R. Alfarra
33Presented & Prepared by: Mahmoud R. Alfarra
34Presented & Prepared by: Mahmoud R. Alfarra
‫تعاىل‬ ‫هللا‬ ‫قال‬:
(ِ‫ج‬‫لل‬ِ‫ِب‬ ‫ج‬‫ن‬‫نو‬ِ‫ؤم‬ُ‫ي‬ ً‫ا‬‫وم‬‫ج‬‫ق‬ ُ‫د‬ِ‫ج‬‫َت‬ ‫ال‬ِ‫ر‬‫ر‬ِ‫خ‬‫ج‬‫أل‬‫ا‬ ِ‫وم‬‫ج‬‫الي‬‫ج‬‫و‬‫ج‬‫ن‬‫و‬‫و‬‫د‬‫روا‬ُ‫ي‬
ُ‫ه‬‫ج‬‫ل‬‫سو‬‫ج‬‫ر‬‫ج‬‫و‬ ‫ج‬‫ج‬‫الل‬ َّ‫حاد‬ ‫ن‬‫ج‬‫م‬)
35Presented & Prepared by: Mahmoud R. Alfarra
Introduction
to OOP
36Presented & Prepared by: Mahmoud R. Alfarra

More Related Content

PPT
3 programming-using-java introduction-to computer
Mahmoud Alfarra
 
PPT
7 programming-using-java decision-making220102011
Mahmoud Alfarra
 
PPT
2 programming-using-java how to built application
Mahmoud Alfarra
 
PPT
6 programming-using-java decision-making20102011-
Mahmoud Alfarra
 
PPT
Introduction to programing languages part 1
university of education,Lahore
 
PDF
Solutions manual for absolute java 5th edition by walter savitch
Albern9271
 
PDF
Cis 1403 lab1- the process of programming
Hamad Odhabi
 
PDF
Cis 1403 lab5_loops
Hamad Odhabi
 
3 programming-using-java introduction-to computer
Mahmoud Alfarra
 
7 programming-using-java decision-making220102011
Mahmoud Alfarra
 
2 programming-using-java how to built application
Mahmoud Alfarra
 
6 programming-using-java decision-making20102011-
Mahmoud Alfarra
 
Introduction to programing languages part 1
university of education,Lahore
 
Solutions manual for absolute java 5th edition by walter savitch
Albern9271
 
Cis 1403 lab1- the process of programming
Hamad Odhabi
 
Cis 1403 lab5_loops
Hamad Odhabi
 

What's hot (20)

PPTX
Msc prev updated
mshoaib15
 
PPTX
Msc prev completed
mshoaib15
 
DOCX
programming concept
Nehabhy
 
PPTX
2.3.tarek
afacct
 
PDF
2013 bookmatter learn_javaforandroiddevelopment
CarlosPineda729332
 
PPTX
Procedural programming
Anbarasan Gangadaran
 
PPTX
Error Detection & Recovery
Akhil Kaushik
 
PPTX
Error detection recovery
Tech_MX
 
PPT
Introduction to Procedural Programming in C++
Salahaddin University-Erbil
 
PPTX
Phases of-compiler
Zahidul Islam Razu
 
PPTX
Introduction to computer science
umardanjumamaiwada
 
PDF
Phases of Compiler
A. S. M. Shafi
 
PPTX
Compiler design
nazmul hoque
 
PPTX
Phases of a Compiler
University of Saskatchewan
 
DOC
Chapter 1 1
bolovv
 
PPT
Advanced Java Topics
Salahaddin University-Erbil
 
PPTX
Compiler construction
Muhammed Afsal Villan
 
PDF
Problem solving methodology
Prof. Dr. K. Adisesha
 
PPTX
Programming
Alawi Alradhi
 
PPTX
Phases of compiler
Karan Deopura
 
Msc prev updated
mshoaib15
 
Msc prev completed
mshoaib15
 
programming concept
Nehabhy
 
2.3.tarek
afacct
 
2013 bookmatter learn_javaforandroiddevelopment
CarlosPineda729332
 
Procedural programming
Anbarasan Gangadaran
 
Error Detection & Recovery
Akhil Kaushik
 
Error detection recovery
Tech_MX
 
Introduction to Procedural Programming in C++
Salahaddin University-Erbil
 
Phases of-compiler
Zahidul Islam Razu
 
Introduction to computer science
umardanjumamaiwada
 
Phases of Compiler
A. S. M. Shafi
 
Compiler design
nazmul hoque
 
Phases of a Compiler
University of Saskatchewan
 
Chapter 1 1
bolovv
 
Advanced Java Topics
Salahaddin University-Erbil
 
Compiler construction
Muhammed Afsal Villan
 
Problem solving methodology
Prof. Dr. K. Adisesha
 
Programming
Alawi Alradhi
 
Phases of compiler
Karan Deopura
 
Ad

Similar to 4 programming-using-java intro-tojava20102011 (20)

PDF
Java notes
Debasish Biswas
 
PPTX
Java-1st.pptx about Java technology before oops
buvanabala
 
PDF
JAVA for Every one
Satyam Pandey
 
PPT
Introduction to Java Programming, Basic Structure, variables Data type, input...
Mr. Akaash
 
PDF
Java chapter 1
Mukesh Tekwani
 
DOCX
java traning report_Summer.docx
GauravSharma164138
 
PDF
OOPS JAVA.pdf
DeepanshuMidha5140
 
PPTX
Introduction to java
Sandeep Rawat
 
PPT
A begineers guide of JAVA - Getting Started
Rakesh Madugula
 
PDF
PJ_M01_C01_PPT_Introduction to Object Oriented Programming Using Java.pdf
projectfora2
 
PPTX
imperative programming language, java, android
i i
 
PPTX
JAVA AND OOPS CONCEPTS.pptx helpful for engineering
PriyanshuGupta101797
 
PPT
Classes and Objects
vmadan89
 
PPTX
Unit1 JAVA.pptx
RahulAnand111531
 
PDF
Sybsc cs sem 3 core java
WE-IT TUTORIALS
 
PDF
College Project - Java Disassembler - Description
Ganesh Samarthyam
 
PPTX
Core java
sharad soni
 
Java notes
Debasish Biswas
 
Java-1st.pptx about Java technology before oops
buvanabala
 
JAVA for Every one
Satyam Pandey
 
Introduction to Java Programming, Basic Structure, variables Data type, input...
Mr. Akaash
 
Java chapter 1
Mukesh Tekwani
 
java traning report_Summer.docx
GauravSharma164138
 
OOPS JAVA.pdf
DeepanshuMidha5140
 
Introduction to java
Sandeep Rawat
 
A begineers guide of JAVA - Getting Started
Rakesh Madugula
 
PJ_M01_C01_PPT_Introduction to Object Oriented Programming Using Java.pdf
projectfora2
 
imperative programming language, java, android
i i
 
JAVA AND OOPS CONCEPTS.pptx helpful for engineering
PriyanshuGupta101797
 
Classes and Objects
vmadan89
 
Unit1 JAVA.pptx
RahulAnand111531
 
Sybsc cs sem 3 core java
WE-IT TUTORIALS
 
College Project - Java Disassembler - Description
Ganesh Samarthyam
 
Core java
sharad soni
 
Ad

More from Mahmoud Alfarra (20)

PPT
Computer Programming, Loops using Java - part 2
Mahmoud Alfarra
 
PPT
Computer Programming, Loops using Java
Mahmoud Alfarra
 
PPT
Chapter 10: hashing data structure
Mahmoud Alfarra
 
PPT
Chapter9 graph data structure
Mahmoud Alfarra
 
PPT
Chapter 8: tree data structure
Mahmoud Alfarra
 
PPT
Chapter 7: Queue data structure
Mahmoud Alfarra
 
PPT
Chapter 6: stack data structure
Mahmoud Alfarra
 
PPT
Chapter 5: linked list data structure
Mahmoud Alfarra
 
PPT
Chapter 4: basic search algorithms data structure
Mahmoud Alfarra
 
PPT
Chapter 3: basic sorting algorithms data structure
Mahmoud Alfarra
 
PPT
Chapter 2: array and array list data structure
Mahmoud Alfarra
 
PPT
Chapter1 intro toprincipleofc#_datastructure_b_cs
Mahmoud Alfarra
 
PPT
Chapter 0: introduction to data structure
Mahmoud Alfarra
 
PPTX
3 classification
Mahmoud Alfarra
 
PPT
8 programming-using-java decision-making practices 20102011
Mahmoud Alfarra
 
PPT
5 programming-using-java intro-tooop20102011
Mahmoud Alfarra
 
PPT
1 programming-using-java -introduction
Mahmoud Alfarra
 
PPTX
تلخيص النصوص تلقائيا
Mahmoud Alfarra
 
PDF
4×4×4 لتحصيل التميز
Mahmoud Alfarra
 
PPTX
Data preparation and processing chapter 2
Mahmoud Alfarra
 
Computer Programming, Loops using Java - part 2
Mahmoud Alfarra
 
Computer Programming, Loops using Java
Mahmoud Alfarra
 
Chapter 10: hashing data structure
Mahmoud Alfarra
 
Chapter9 graph data structure
Mahmoud Alfarra
 
Chapter 8: tree data structure
Mahmoud Alfarra
 
Chapter 7: Queue data structure
Mahmoud Alfarra
 
Chapter 6: stack data structure
Mahmoud Alfarra
 
Chapter 5: linked list data structure
Mahmoud Alfarra
 
Chapter 4: basic search algorithms data structure
Mahmoud Alfarra
 
Chapter 3: basic sorting algorithms data structure
Mahmoud Alfarra
 
Chapter 2: array and array list data structure
Mahmoud Alfarra
 
Chapter1 intro toprincipleofc#_datastructure_b_cs
Mahmoud Alfarra
 
Chapter 0: introduction to data structure
Mahmoud Alfarra
 
3 classification
Mahmoud Alfarra
 
8 programming-using-java decision-making practices 20102011
Mahmoud Alfarra
 
5 programming-using-java intro-tooop20102011
Mahmoud Alfarra
 
1 programming-using-java -introduction
Mahmoud Alfarra
 
تلخيص النصوص تلقائيا
Mahmoud Alfarra
 
4×4×4 لتحصيل التميز
Mahmoud Alfarra
 
Data preparation and processing chapter 2
Mahmoud Alfarra
 

Recently uploaded (20)

PPTX
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
PDF
Sunset Boulevard Student Revision Booklet
jpinnuck
 
PPTX
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
PDF
1.Natural-Resources-and-Their-Use.ppt pdf /8th class social science Exploring...
Sandeep Swamy
 
PPTX
Measures_of_location_-_Averages_and__percentiles_by_DR SURYA K.pptx
Surya Ganesh
 
PDF
5.EXPLORING-FORCES-Detailed-Notes.pdf/8TH CLASS SCIENCE CURIOSITY
Sandeep Swamy
 
PDF
Arihant Class 10 All in One Maths full pdf
sajal kumar
 
DOCX
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
PPTX
How to Manage Global Discount in Odoo 18 POS
Celine George
 
PPTX
Understanding operators in c language.pptx
auteharshil95
 
PPTX
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Celine George
 
PPTX
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
PPTX
Strengthening open access through collaboration: building connections with OP...
Jisc
 
PDF
Landforms and landscapes data surprise preview
jpinnuck
 
PDF
Phylum Arthropoda: Characteristics and Classification, Entomology Lecture
Miraj Khan
 
PDF
3.The-Rise-of-the-Marathas.pdfppt/pdf/8th class social science Exploring Soci...
Sandeep Swamy
 
PPTX
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
PPTX
PREVENTIVE PEDIATRIC. pptx
AneetaSharma15
 
PPTX
TEF & EA Bsc Nursing 5th sem.....BBBpptx
AneetaSharma15
 
PPTX
Congenital Hypothyroidism pptx
AneetaSharma15
 
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
Sunset Boulevard Student Revision Booklet
jpinnuck
 
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
1.Natural-Resources-and-Their-Use.ppt pdf /8th class social science Exploring...
Sandeep Swamy
 
Measures_of_location_-_Averages_and__percentiles_by_DR SURYA K.pptx
Surya Ganesh
 
5.EXPLORING-FORCES-Detailed-Notes.pdf/8TH CLASS SCIENCE CURIOSITY
Sandeep Swamy
 
Arihant Class 10 All in One Maths full pdf
sajal kumar
 
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
How to Manage Global Discount in Odoo 18 POS
Celine George
 
Understanding operators in c language.pptx
auteharshil95
 
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Celine George
 
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
Strengthening open access through collaboration: building connections with OP...
Jisc
 
Landforms and landscapes data surprise preview
jpinnuck
 
Phylum Arthropoda: Characteristics and Classification, Entomology Lecture
Miraj Khan
 
3.The-Rise-of-the-Marathas.pdfppt/pdf/8th class social science Exploring Soci...
Sandeep Swamy
 
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
PREVENTIVE PEDIATRIC. pptx
AneetaSharma15
 
TEF & EA Bsc Nursing 5th sem.....BBBpptx
AneetaSharma15
 
Congenital Hypothyroidism pptx
AneetaSharma15
 

4 programming-using-java intro-tojava20102011

  • 1. Using Java MINISTRY OF EDUCATION & HIGHER EDUCATION COLLEGE OF SCIENCE AND TECHNOLOGY KHANYOUNIS- PALESTINE
  • 2.  First Program in Java  Discussion of the main concepts  Install the JDK and JCreator  Memory Concepts and DataTypes  Variables and Identifiers  Arithmetic Operations  Emank X Mezank 2Presented & Prepared by: Mahmoud R. Alfarra
  • 3.  Computer programmers create applications by writing computer programs.  Your e-mail application helps you send and receive e-mail  yourWeb browser lets you view Web pages fromWeb sites around the world.  A Java application is a computer program that executes when you use the java command to launch the JavaVirtual Machine (JVM). 3Presented & Prepared by: Mahmoud R. Alfarra
  • 4.  Let us consider a simple application that displays a line of text using Java command. 4Presented & Prepared by: Mahmoud R. Alfarra
  • 5.  Every program in Java consists of at least one class declaration that is defined by the programmer.  These are known as programmer-defined classes or user-defined classes. 5Presented & Prepared by: Mahmoud R. Alfarra
  • 6.  Java class declarations normally contain one or more methods.  For a Java application, exactly one of the methods must be called main and must be defined as shown 6Presented & Prepared by: Mahmoud R. Alfarra It is a syntax error if braces do not occur in matching pairs
  • 7.  Instructions perform an action namely, to print the string of characters contained between the double quotation marks.  We refer to characters between double quotation marks simply as strings. 7Presented & Prepared by: Mahmoud R. Alfarra
  • 8.  Method System.out.println displays a line of text in the command window.  The string in the parentheses is the argument to the method. 8Presented & Prepared by: Mahmoud R. Alfarra  Method print displays one line of text in the command window and position the cursor next the last character.  Println position the output cursor at the beginning of the next line in the command.
  • 9.  begins with // or between /* */, indicating that the remainder of the line is a comment.  The Java compiler ignores comments. 9Presented & Prepared by: Mahmoud R. Alfarra
  • 10. 10Presented & Prepared by: Mahmoud R. Alfarra Java is case sensitive. Not using the proper uppercase and lowercase letters for an identifier normally causes a compilation error. It is an error for a public class to have a file name that is not identical to the class name (plus the .java extension) in terms of both spelling and capitalization. Omitting the semicolon at the end of a statement is a syntax error.
  • 11.  From the sun site ▪ http://java.sun.com/javase/downloads/index.jsp.  download jdk-6-windows-i586.exe  Setup normally (next then next …)  But be care where it will be installed in your PC 11Presented & Prepared by: Mahmoud R. Alfarra
  • 12. 12Presented & Prepared by: Mahmoud R. Alfarra  From the site of Jcreator or my web site ▪ http://www.jcreator.com/ ▪ Staff.cst.ps/mfarra  Download the JCreator Pro  And then trace the following slides to setup …
  • 19. 5 6
  • 20. 7 Install the JDK and JCreator on your PC at home, and then write a program that prints your name, ID, GPA, addressHW 4.1
  • 21.  Identifiers are names used to identify variables, methods, classes …  An identifier consist of letters,numbers, _ , $  But must:  Begin with letter.  not contain space.  not a reserved word 21Presented & Prepared by: Mahmoud R. Alfarra
  • 22.  A variable is a location in the computer's memory where a value can be stored for use later in a program.  All variables must be declared with a name and a type before they can be used. 22Presented & Prepared by: Mahmoud R. Alfarra Data type Identifiers
  • 23.  Data types in Java are divided into two categories primitive types and reference.  A primitive-type variable can store exactly one value of its declared type at a time.  Every variable has a name, a type, a size and a value. 23Presented & Prepared by: Mahmoud R. Alfarra
  • 24. 24Presented & Prepared by: Mahmoud R. Alfarra 0 0 0 1 1 1 0 0 ‫الذكرة‬ ‫من‬‫مقطع‬ ‫يتم‬‫التعريف‬ ‫هذا‬ ‫بمجرد‬ ‫الذاكرة‬ ‫في‬ ‫مساحة‬ ‫تخصيص‬ ‫يناس‬ ‫بحجم‬‫بيانات‬ ‫لتخزين‬‫ب‬ ‫اد‬‫ر‬‫امل‬‫النوع‬ Type1 x = 28 ; // ‫سعتها‬ ‫الذاكرة‬ ‫في‬ ‫مساحة‬‫تخصيص‬ ‫سيتم‬1‫بايت‬ Type2 y; // ‫سعتها‬ ‫الذاكرة‬ ‫في‬ ‫مساحة‬‫تخصيص‬ ‫سيتم‬2‫بايت‬
  • 25. 25Presented & Prepared by: Mahmoud R. Alfarra TypeValues examplesSize booleantrue, false1 Byte char‘b’, ‘c’ , ‘t’, ‘5’, …2 byte byte128, 0, 34, …1 byte short32768, 67, 342 byte int2147483648 , 7, 9, 0, …4 byte long9223372036854775808, 878, …8 byte float- 3.5, 234.56, …4 byte double-2345.34, …8 byte
  • 26.  Most programs perform arithmetic calculations.  The arithmetic operators are 26Presented & Prepared by: Mahmoud R. Alfarra
  • 27.  Java applies the operators in arithmetic expressions in a precise sequence determined by the following rules of operator precedence: 27Presented & Prepared by: Mahmoud R. Alfarra
  • 28. 28Presented & Prepared by: Mahmoud R. Alfarra
  • 29. 29Presented & Prepared by: Mahmoud R. Alfarra
  • 30. 30Presented & Prepared by: Mahmoud R. Alfarra Some common escape sequences
  • 31. 31Presented & Prepared by: Mahmoud R. Alfarra
  • 32. 32Presented & Prepared by: Mahmoud R. Alfarra
  • 33. 33Presented & Prepared by: Mahmoud R. Alfarra
  • 34. 34Presented & Prepared by: Mahmoud R. Alfarra
  • 35. ‫تعاىل‬ ‫هللا‬ ‫قال‬: (ِ‫ج‬‫لل‬ِ‫ِب‬ ‫ج‬‫ن‬‫نو‬ِ‫ؤم‬ُ‫ي‬ ً‫ا‬‫وم‬‫ج‬‫ق‬ ُ‫د‬ِ‫ج‬‫َت‬ ‫ال‬ِ‫ر‬‫ر‬ِ‫خ‬‫ج‬‫أل‬‫ا‬ ِ‫وم‬‫ج‬‫الي‬‫ج‬‫و‬‫ج‬‫ن‬‫و‬‫و‬‫د‬‫روا‬ُ‫ي‬ ُ‫ه‬‫ج‬‫ل‬‫سو‬‫ج‬‫ر‬‫ج‬‫و‬ ‫ج‬‫ج‬‫الل‬ َّ‫حاد‬ ‫ن‬‫ج‬‫م‬) 35Presented & Prepared by: Mahmoud R. Alfarra
  • 36. Introduction to OOP 36Presented & Prepared by: Mahmoud R. Alfarra