Thursday, June 21, 2007

Object Oriented Progamming

This is my 2nd Session for JAVA
This time we will talk about the most imporatant thing for all programming language
is(OOP) Object Oriented Progamming

The OOP approach acheive 3 concepts

1-Encapslution
2-Inheritance
3-Polymorphism

we will explain each one , we begin by the 1St
1-Encapslution:
the Data is capsluted in one thing called Object and acheive two things are

*Modularity(قائم بذاتة)
the data is collecting in one capsolue (each object has its own properties )
ex: class Demo{
public String name;
float cost;
}

*Data hiding :

(prevent some one from using some properties) & this is done by make some

of ur properties is Private and this is useful for more secure
ex: class Demo{
private String name;

}

2- Inheritance:
the benefits of inheritance *reduce code *data generalization
there are two class one is called Super class(parent) and other is called Sub class (child)

the parent class contain all common properties
the inheritance make by extends keyword

ex: class Parent{

String title;
String name;

}

class Child extends Parent{

int id;

}


3-Polymorphism:

(تعدد الاشكال لشئ واحد)(صلصال)
used with inheritance
ex: OverRide

Saturday, June 16, 2007

I will introduced the first session of J2SE

Sections

*SoftWare Language
*Interpreter VS Compiler
* Java as platform independent

SoftWare Language
the programming language divided into 5 Generation langauge related to appraoch of computer system & human related
1st GL: like bianry code (1,0)
2nd GL: like Assembly
3rd GL:high level language like Java,C#
4th GL: quary language like SQL
5th GL: Artificial language like prolog
*Interprter:(المترجم) like in some conferences each one of the audience has one like interpreter to interprete the words
in other words : the interpreter interprte each instruction (instruction by instruction)
Compiler : convert to machine laguage that the computer can inderstood it
C or Java ----->compiler --------> low level(machine language)
for whole the unit of the program
*what is the meaning of platform ?
platform:is combination of the H.W + S.W(Processor + O.S)
like X86 + windowsxp or
java is platform independent the meaning of this is not depend on the platform
the C is plat form dependent to introduce that
code C ---->compiler ------>file .exe -----> interprter
the java
------>windows+X86
code Java ---->compiler ---->Byte Code ---->JVM ------>solaris+SPARK
Byte Code: like machine code
JVM : java virtual machine (convert byte code to any platform)
so the java is platform independent beacuse of JVM
To talk about JVM we must introduce the knowledge about JDK , JRE
JDK:Java development kit
Consists of
1-JRE
2- compiler
JRE: Java runtime Enviroment
consists of
1-JVM
2-interpreter
API(Application Programming Interface)
it is library contains alot of classes & interfaces
like GUI(grafical user Interface)

Thursday, June 14, 2007


Visit this sit every day to know every thing about my favorite team

JAVA CERTIFICATION


IM (SCJP) SUN CERTIFIED JAVA PROGRAMMER

IM INSTRUCTOR JAVA & LECTURE IN MANSOURA UNVERISTY