Unit-I Chapter in Book - 2 Overview of Java: - K. Indhu
Unit-I Chapter in Book - 2 Overview of Java: - K. Indhu
CHAPTER IN BOOK- 2
OVERVIEW OF JAVA
-K. Indhu
K. INDHU
GOALS
1. Introduction
2. OOP (Encapsulation) in Java
3. OOP (Inheritance) in Java
4. OOP (Polymorphism) in Java
5. Getting Started with Java Program
6. Compiling Java Program
7. Creating & Compiling Java Application
8. Executing Java Application
9. Comments in Java
10.Block of a Program
11.Second Short Java Program
12.main() Method in Java
13.Third short Java Program
14.Java Lexical Issues
K. INDHU
INTRODUCTION
Two Paradigms-> (i) Process Oriented Model,
K. INDHU
K. INDHU
K. INDHU
K. INDHU
K. INDHU
K. INDHU
10
K. INDHU
11
K. INDHU
12
COMMENTS IN JAVA
(1) int i = 10; // i is used as a counter
(2) THE MULTILINE COMMENT
This form of comment may also extend over several lines
as shown here:
/*
five lines.
*/ P
(3) This is the documentation comment.
/**
13
BLOCK OF A PROGRAM
A pair of braces ( {...........} ) in a program forms a
block that groups components of a program.
K. INDHU
14
K. INDHU
15
// Statements;
}
K. INDHU
16
K. INDHU
17
K. INDHU
18
SO FAR WE STUDIED
Overview of Java
K. INDHU
19
HAPPY
LEARNING!!!