Академический Документы
Профессиональный Документы
Культура Документы
JAVA Fundamentals
Java Basics
First was C.
C++ as an extension to C.
provides the capabilities of OOPS
a hybrid language
JAVA
was developed in 1991
by James Gosling
at Sun Microsystems
Oak was initial name.
became popular in 1995
Features of JAVA
Simple
Object-Oriented
Distributed
Interpreted
Robust
Secure
Architecture-Neutral
Portable
Performance
Multithreaded
OOP Concepts
Procedural Approach
Focus on procedures
data is shared
More difficult to modify
Hard to manage complexity
Principles of OOP
Abstraction
Encapsulation
Inheritance
Polymorphism
Principles of OOP
Abstraction
Ignore
irrelevant features,
properties, or
functions
Emphasize on relevant ones
represent complex reality
highlights the properties of an entity
is achieved by using
Abstract classes
Interfaces
Principles of OOP
Principles of OOP
Inheritance
Principles of OOP
Polymorphism
BENEFITS OF OOPS
Source Code
Java
Compile
Variable Definitions
Variable definitions
name of place in memory
contain data
All variables have:
Data type
Name
Value
also called literal
Semicolon
e.g.
String s = MC697;
int count = 5;
Variable Definitions
Initializing Variables
Operators
Basic Assignment: =
Arithmetic Operators: +, -, *, /, %(remainder)
integer, floating point, and mixed arithmetic and
expressions
Assignment Operators: +=, -=, *=, /=, %=
increment and decrement operators: ++, --
prefix and postfix.
avoid use inside expressions.
int x = 3;
x++;
Expressions
Evaluation is based on the precedence of operators
Operator Precedence
Order Operators Name
THANKS..