SlideShare a Scribd company logo
1 of 23
Lecture 02
Introduction to Java
Lecture Outline
• Evolution of Programming Languages
• Why Java?
• Java History
• Java Versions
• Java Features
• Java Procedure
• Revision of Programming Fundamentals Topics
What is a Program?
• A computer program is a sequence of instructions written to
perform a specified task for a computer.
The Evolution of Programming Language
• Machine Language: 1940’s
• Assembly Language: Early 1950’s
• Higher-Level Languages: Late 1950’s
• Fortran: scientific computation
• COBOL: business data processing
• Lisp: symbolic computation
• Today: Thousands of programming languages available
What is Programming?
• When we say “programming” we are actually referring to the
science of transforming our intentions in a high-level
programming language.
What is this course about?
• Learn programming in a high-level programming language.
• Programming has many paradigms
• Procedural
• Object-Oriented
• We will study Object-Oriented Programming using ‘Java’, a
popular high-level object-oriented programming language.
Non-structured Programming
e.g. Assembly Language, BASIC
• Advantages
– Low Level access
– High Optimization
– Shorter size programs
• Disadvantages
– Large programs highly complex
– Difficult to understand
– Repetition of code
a 100
mov ax,0002
mov bx,0004
add ax,bx
nop
Procedural/Structured Programming
e.g. C, Pascal
• Advantages
– Fast execution
– Small memory footprint (Size)
• Disadvantages
– Limited in Enhancement over the time
– Low reusability
– Difficult to Extended
– Less Dynamic architecture
Object Oriented Programming
e.g. C++, C#, Java etc
• Disadvantages
– Little Slow execution
– Little Big memory footprint (Size)
• Advantages
– Better Enhancement over the time
– High reusability
– Easy to Extended
– Better representation of real world problems
Why Java?
• It’s the current “hot” language
• Java mean “Cup of Coffee”
• It’s almost entirely object-oriented
• It has a vast library of predefined objects and operations
• It’s more platform independent
• This makes it great for web programming too (but that is beyond this
course)
• It’s more secure
• It isn’t C++
Java History (1 of 3)
• created in 1991
• by James Gosling et al. of Sun Microsystems.
• Initially called Oak, in honor of the tree outside Gosling's window,
its name was changed to Java because there was already a
language called Oak.
Java History (2 of 3)
• The term Java actually refers to more than just a particular
language like C or Pascal. Java encompasses several parts,
including:
• A high level language – Java language is a high level one that at a
glance looks very similar to C and C++ but offers many unique features
of its own.
• Java bytecode – A compiler, such as Sun's javac, transforms the Java
language source code to bytecode that runs in the JVM.
• Java Virtual Machine (JVM) – a program, such as Sun's java, that runs
on a given platform and takes the bytecode programs as input and
interprets them just as if it was a physical process executing machine
code.
Java History (3 of 3)
• Sun provides a set of programming tools such as javac, java and
others in a bundle that it calls a Java Software Development Kit
for each version of the language for different platforms such as
Windows, Linux, etc.
• Sun also provides a runtime bundle with just the JVM when the
programming tools are not needed.
Java Versions (1 of 2)
• Since its introduction in 1995, Sun has released a new version of the
Java language every two years or so.
• These new versions brought enhancements, new capabilities and fixes to
bugs.
• Till 2002, the versions were numbered 1.x, where x reached up till 4.
(Intermediate revisions were labeled with a third number - 1.x.y - as in
1.4.2.)
• After that all the versions were released with a whole number such as 5.0 or
6.
• The current version of Java is Java SE 17 (LTS) where SE refers to
Standard Edition (used for targeting workstations) and the LTS refers to
Long Term Support.
• Not all Java versions have LTS, so far only 3 have been released (2008,
2018 and 2021)
• Another newer version of Java SE 18 is expected to be released in
March 2022
Java Versions (2 of 2)
• The major editions of Java are:
• Java Card (for smart cards)
• Java Micro Edition (for limited resources environments)
• Java Standard Edition (for workstations)
• Java Enterprise Edition (for enterprises and internet environments)
Java Features
• Simple & Secure
• Object-Oriented
• Robust
• Restricts the programmer to find the mistakes early
• Performs compile-time (strong typing) and run-time (exception-handling)
checks
• Manages memory automatically
• Multithreaded
• Architecture-Neutral
• Interpreted and High-Performance
• Distributed
• Dynamic
Java Procedure
• The essential steps to creating and running Java programs go as
follows:
• Create a Java source code file
• Compile the source code
• Run the compiled code in any Java Virtual Machine.
Java Program Execution
Java Program Execution
• Manual – with text editor (notepad)
• Create the Java source code files (*.java)
• Use Command Line tools in the Java Software Development Kit (SDK).
• The SDK is provided by Sun for several platforms and includes a
number of tools, the most important of which are:
• javac – compiles Java source code files
• java – runs Java application programs
• appletviewer – tests applets independently of a browser
• Integrated Development Environment (IDE)
• NetBeans
• Borland JBuilder
• Eclipse
• Dr Java
• IntelliJ IDEA (My Favorite)
Revision (1 of 3)
• Decision Making Statements
• If-else
• Switch Case
• Loops
• For
• While
• Do-While
• Nested {{}}
Revision (2 of 3)
• Variables
• Strings in C/C++
• Arrays
• 1D
• 2D
• ND
Revision (3 of 3)
• Functions / Methods
• Declaration
• Definition
• Calling
• Overloading
• Passing Arguments
• By Value
• By reference in java?
Thank You 
Any Questions?

More Related Content

Similar to OOP - Lecture02 - Introduction to Java.pptx

Similar to OOP - Lecture02 - Introduction to Java.pptx (20)

Java (Part 2) unit 1
Java (Part 2) unit 1Java (Part 2) unit 1
Java (Part 2) unit 1
 
Introduction to Java(1) - CPPT+opy.Jpptx
Introduction to Java(1) - CPPT+opy.JpptxIntroduction to Java(1) - CPPT+opy.Jpptx
Introduction to Java(1) - CPPT+opy.Jpptx
 
JAVA PROGRAM CONSTRUCTS OR LANGUAGE BASICS.pptx
JAVA PROGRAM CONSTRUCTS OR LANGUAGE BASICS.pptxJAVA PROGRAM CONSTRUCTS OR LANGUAGE BASICS.pptx
JAVA PROGRAM CONSTRUCTS OR LANGUAGE BASICS.pptx
 
Introduction to java
Introduction to java Introduction to java
Introduction to java
 
1 java introduction
1 java introduction1 java introduction
1 java introduction
 
1 java intro
1 java intro1 java intro
1 java intro
 
JAVA INTRODUCTION - 1
JAVA INTRODUCTION - 1JAVA INTRODUCTION - 1
JAVA INTRODUCTION - 1
 
1.Intro--Why Java.pptx
1.Intro--Why Java.pptx1.Intro--Why Java.pptx
1.Intro--Why Java.pptx
 
1 java programming- introduction
1  java programming- introduction1  java programming- introduction
1 java programming- introduction
 
Basic javaprogramming(session1)
Basic javaprogramming(session1)Basic javaprogramming(session1)
Basic javaprogramming(session1)
 
Intro to Java Technology
Intro to Java TechnologyIntro to Java Technology
Intro to Java Technology
 
Java ppt1
Java ppt1Java ppt1
Java ppt1
 
Learn Java Part 1
Learn Java Part 1Learn Java Part 1
Learn Java Part 1
 
java full 1 (Recovered).docx
java full 1 (Recovered).docxjava full 1 (Recovered).docx
java full 1 (Recovered).docx
 
basic core java up to operator
basic core java up to operatorbasic core java up to operator
basic core java up to operator
 
OOP Lecture 1-Intro to Java.pptx
OOP Lecture 1-Intro to Java.pptxOOP Lecture 1-Intro to Java.pptx
OOP Lecture 1-Intro to Java.pptx
 
java full 1.docx
java full 1.docxjava full 1.docx
java full 1.docx
 
java full.docx
java full.docxjava full.docx
java full.docx
 
java completed units.docx
java completed units.docxjava completed units.docx
java completed units.docx
 
Chapter-1 Introduction.pptx
Chapter-1 Introduction.pptxChapter-1 Introduction.pptx
Chapter-1 Introduction.pptx
 

Recently uploaded

Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45MysoreMuleSoftMeetup
 
Benefits and Challenges of OER by Shweta Babel.pptx
Benefits and Challenges of OER by Shweta Babel.pptxBenefits and Challenges of OER by Shweta Babel.pptx
Benefits and Challenges of OER by Shweta Babel.pptxsbabel
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjMohammed Sikander
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文中 央社
 
Poster_density_driven_with_fracture_MLMC.pdf
Poster_density_driven_with_fracture_MLMC.pdfPoster_density_driven_with_fracture_MLMC.pdf
Poster_density_driven_with_fracture_MLMC.pdfAlexander Litvinenko
 
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...Nguyen Thanh Tu Collection
 
demyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptxdemyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptxMohamed Rizk Khodair
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxneillewis46
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxMarlene Maheu
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...Nguyen Thanh Tu Collection
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSean M. Fox
 
The Ball Poem- John Berryman_20240518_001617_0000.pptx
The Ball Poem- John Berryman_20240518_001617_0000.pptxThe Ball Poem- John Berryman_20240518_001617_0000.pptx
The Ball Poem- John Berryman_20240518_001617_0000.pptxNehaChandwani11
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptxPoojaSen20
 
Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).Mohamed Rizk Khodair
 
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...Krashi Coaching
 
Championnat de France de Tennis de table/
Championnat de France de Tennis de table/Championnat de France de Tennis de table/
Championnat de France de Tennis de table/siemaillard
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽中 央社
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17Celine George
 

Recently uploaded (20)

Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
 
Benefits and Challenges of OER by Shweta Babel.pptx
Benefits and Challenges of OER by Shweta Babel.pptxBenefits and Challenges of OER by Shweta Babel.pptx
Benefits and Challenges of OER by Shweta Babel.pptx
 
Word Stress rules esl .pptx
Word Stress rules esl               .pptxWord Stress rules esl               .pptx
Word Stress rules esl .pptx
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
Poster_density_driven_with_fracture_MLMC.pdf
Poster_density_driven_with_fracture_MLMC.pdfPoster_density_driven_with_fracture_MLMC.pdf
Poster_density_driven_with_fracture_MLMC.pdf
 
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
 
demyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptxdemyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptx
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
The Ball Poem- John Berryman_20240518_001617_0000.pptx
The Ball Poem- John Berryman_20240518_001617_0000.pptxThe Ball Poem- John Berryman_20240518_001617_0000.pptx
The Ball Poem- John Berryman_20240518_001617_0000.pptx
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptx
 
Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).
 
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
 
Championnat de France de Tennis de table/
Championnat de France de Tennis de table/Championnat de France de Tennis de table/
Championnat de France de Tennis de table/
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17
 

OOP - Lecture02 - Introduction to Java.pptx

  • 2. Lecture Outline • Evolution of Programming Languages • Why Java? • Java History • Java Versions • Java Features • Java Procedure • Revision of Programming Fundamentals Topics
  • 3. What is a Program? • A computer program is a sequence of instructions written to perform a specified task for a computer.
  • 4. The Evolution of Programming Language • Machine Language: 1940’s • Assembly Language: Early 1950’s • Higher-Level Languages: Late 1950’s • Fortran: scientific computation • COBOL: business data processing • Lisp: symbolic computation • Today: Thousands of programming languages available
  • 5. What is Programming? • When we say “programming” we are actually referring to the science of transforming our intentions in a high-level programming language.
  • 6. What is this course about? • Learn programming in a high-level programming language. • Programming has many paradigms • Procedural • Object-Oriented • We will study Object-Oriented Programming using ‘Java’, a popular high-level object-oriented programming language.
  • 7. Non-structured Programming e.g. Assembly Language, BASIC • Advantages – Low Level access – High Optimization – Shorter size programs • Disadvantages – Large programs highly complex – Difficult to understand – Repetition of code a 100 mov ax,0002 mov bx,0004 add ax,bx nop
  • 8. Procedural/Structured Programming e.g. C, Pascal • Advantages – Fast execution – Small memory footprint (Size) • Disadvantages – Limited in Enhancement over the time – Low reusability – Difficult to Extended – Less Dynamic architecture
  • 9. Object Oriented Programming e.g. C++, C#, Java etc • Disadvantages – Little Slow execution – Little Big memory footprint (Size) • Advantages – Better Enhancement over the time – High reusability – Easy to Extended – Better representation of real world problems
  • 10. Why Java? • It’s the current “hot” language • Java mean “Cup of Coffee” • It’s almost entirely object-oriented • It has a vast library of predefined objects and operations • It’s more platform independent • This makes it great for web programming too (but that is beyond this course) • It’s more secure • It isn’t C++
  • 11. Java History (1 of 3) • created in 1991 • by James Gosling et al. of Sun Microsystems. • Initially called Oak, in honor of the tree outside Gosling's window, its name was changed to Java because there was already a language called Oak.
  • 12. Java History (2 of 3) • The term Java actually refers to more than just a particular language like C or Pascal. Java encompasses several parts, including: • A high level language – Java language is a high level one that at a glance looks very similar to C and C++ but offers many unique features of its own. • Java bytecode – A compiler, such as Sun's javac, transforms the Java language source code to bytecode that runs in the JVM. • Java Virtual Machine (JVM) – a program, such as Sun's java, that runs on a given platform and takes the bytecode programs as input and interprets them just as if it was a physical process executing machine code.
  • 13. Java History (3 of 3) • Sun provides a set of programming tools such as javac, java and others in a bundle that it calls a Java Software Development Kit for each version of the language for different platforms such as Windows, Linux, etc. • Sun also provides a runtime bundle with just the JVM when the programming tools are not needed.
  • 14. Java Versions (1 of 2) • Since its introduction in 1995, Sun has released a new version of the Java language every two years or so. • These new versions brought enhancements, new capabilities and fixes to bugs. • Till 2002, the versions were numbered 1.x, where x reached up till 4. (Intermediate revisions were labeled with a third number - 1.x.y - as in 1.4.2.) • After that all the versions were released with a whole number such as 5.0 or 6. • The current version of Java is Java SE 17 (LTS) where SE refers to Standard Edition (used for targeting workstations) and the LTS refers to Long Term Support. • Not all Java versions have LTS, so far only 3 have been released (2008, 2018 and 2021) • Another newer version of Java SE 18 is expected to be released in March 2022
  • 15. Java Versions (2 of 2) • The major editions of Java are: • Java Card (for smart cards) • Java Micro Edition (for limited resources environments) • Java Standard Edition (for workstations) • Java Enterprise Edition (for enterprises and internet environments)
  • 16. Java Features • Simple & Secure • Object-Oriented • Robust • Restricts the programmer to find the mistakes early • Performs compile-time (strong typing) and run-time (exception-handling) checks • Manages memory automatically • Multithreaded • Architecture-Neutral • Interpreted and High-Performance • Distributed • Dynamic
  • 17. Java Procedure • The essential steps to creating and running Java programs go as follows: • Create a Java source code file • Compile the source code • Run the compiled code in any Java Virtual Machine.
  • 19. Java Program Execution • Manual – with text editor (notepad) • Create the Java source code files (*.java) • Use Command Line tools in the Java Software Development Kit (SDK). • The SDK is provided by Sun for several platforms and includes a number of tools, the most important of which are: • javac – compiles Java source code files • java – runs Java application programs • appletviewer – tests applets independently of a browser • Integrated Development Environment (IDE) • NetBeans • Borland JBuilder • Eclipse • Dr Java • IntelliJ IDEA (My Favorite)
  • 20. Revision (1 of 3) • Decision Making Statements • If-else • Switch Case • Loops • For • While • Do-While • Nested {{}}
  • 21. Revision (2 of 3) • Variables • Strings in C/C++ • Arrays • 1D • 2D • ND
  • 22. Revision (3 of 3) • Functions / Methods • Declaration • Definition • Calling • Overloading • Passing Arguments • By Value • By reference in java?
  • 23. Thank You  Any Questions?