0% found this document useful (0 votes)
25 views38 pages

Chapter 1 - Introduction To Computers, Programs, and Java - Lecture2

Chapter 1_Introduction to Computers, Programs, and Java_Lecture2

Uploaded by

mo7roos507723
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views38 pages

Chapter 1 - Introduction To Computers, Programs, and Java - Lecture2

Chapter 1_Introduction to Computers, Programs, and Java_Lecture2

Uploaded by

mo7roos507723
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 38

Chapter 1 Introduction to

Computers, Programs, and Java

Lecture 2

Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
All rights reserved.
0
Objectives
F To understand computer basics, programs, and operating systems (§§1.2–1.4).
F To understand the meaning of Java language specification, API, JDK, and IDE
(§1.6).
F To write a simple Java program (§1.7).
F To display output on the console (§1.7).
F To explain the basic syntax of a Java program (§1.7).
F To create, compile, and run Java programs (§1.8).
F To use sound Java programming style and document programs properly (§1.9).
F To explain the differences between syntax errors, runtime errors, and logic
errors (§1.10).
F To develop Java programs using NetBeans (§1.11).

Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
All rights reserved.
0
What is a Computer?
A computer consists of a CPU, tomemory, storage devices, input i D

devices, output devices, and communication devices.


s I
e

2450 Ww1

at
4141 so
Y

ay
Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
All rights reserved.
0
041st'm 1 CPU
1 as 11 a
The central processing unit (CPU) is the brain of a computer. It
4 a u o
retrieves instructions from memory and executes them. The CPU
speed is measured in megahertz (MHz), with 1 megahertz equaling 1
million pulses per second. The speed of the CPU has been improved
Jw 1 Core I9 (18-Core) with
continuously. You can get an Intel Processor
3 gigahertz speed (1 gigahertz is 1000 megahertz). JI JA
N of

‫ يسترجع التعليمات من‬.‫( هي عقل الكمبيوتر‬CPU) ‫وحدة املعالجة املركزية‬


(CPU) ‫ يتم قياس سرعة وحدة املعالجة املركزية‬.‫الذاكرة وينفذها‬
a ‫ تم تحسني‬.‫ ميغا هرتز يساوي مليون نبضة في الثانية‬1 ‫ بمعدل‬، ‫بامليغاهرتز‬
g I ‫ يمكنك الحصول على معالج‬.‫سرعة وحدة املعالجة املركزية بشكل مستمر‬
‫ جيجاهرتز تساوي‬1) ‫ جيجاهرتز‬3 ‫ بسرعة‬Intel Core I9 (18-Core)
Mt'd .(‫ ميجاهرتز‬1000
w
Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
All rights reserved.
0
JIN Memory a kind 1
IIE 21411
Memory is to store data and program instructions for CPU to
It 719 go in to
execute. A memory unit is an ordered sequence of bytes, each holds
eight bits. A program and its data must be brought to memory before
they can be executed. .‫الذاكرة هي تخزين البيانات وتعليمات البرنامج حتى تقوم وحدة املعالجة املركزية بتنفيذها‬
‫ يجب إحضار‬.‫ كل منها يحمل ثمانية بتات‬، ‫وحدة الذاكرة هي سلسلة مرتبة من البايت‬
.‫البرنامج وبياناته إلى الذاكرة قبل أن يتم تنفيذها‬

RAM

JAI
5 I
MINI
I
Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
All rights reserved.
0
Jill J T
How Data is Stored?
Data are encoded as a series of bits (zeros
and ones). ‫يتم ترميز البيانات على شكل سلسلة من البتات‬
.(‫)األصفار واآلحاد‬

For example, character ‘J’ is represented by


01001010 in one byte. ‫" بـ‬J" ‫ يتم تمثيل الحرف‬، ‫على سبيل املثال‬
.‫ في بايت واحد‬01001010

If computer needs to store a large number side A


that cannot fit into a single byte, it uses a
number of adjacent bytes. and
‫إذا احتاج الكمبيوتر إلى تخزين عدد‬
، ‫كبير ال يمكن وضعه في بايت واحد‬
8 6A coin

.‫فإنه يستخدم عد ًدا من البايت املتجاورة‬

Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
All rights reserved.
0
251051
Storage Devices
Tyto of thsu I w
Memory is volatile, because information is lost when the power is
I off. Programs and data are permanently
t's stored on storage devices
and are moved to memory when the computer actually uses them.
dei of storage devices:Disk drives (hard disks
There are three main types
and floppy disks), CD drives (CD-R and CD-RW), and Tape drives.
D
5011 d y
pm
OH YI
‫ يتم تخزين‬.‫ ألن املعلومات تُفقد عند انقطاع التيار الكهربائي‬، ‫الذاكرة متقلبة‬
‫البرامج والبيانات بشكل دائم على أجهزة التخزين ويتم نقلها إلى الذاكرة عندما‬
‫ محركات‬:‫ هناك ثالثة أنواع رئيسية من أجهزة التخزين‬.‫يستخدمها الكمبيوتر بالفعل‬
CD-R) ‫األقراص )األقراص الثابتة واألقراص املرنة( ومحركات األقراص املضغوطة‬
.‫( ومحركات األقراص‬CD-RW ‫و‬

tafask
All rights reserved.
IIYE.no
Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
3 A
0
we
Output Devices: Monitor
Idl
The monitor displays information (text and graphics). The resolution
and dot pitch determine the quality of the display.

.‫ تحدد النقاط درجة الدقة و جودة العرض‬.(‫تعرض الشاشة معلومات )نصوص ورسومات‬

Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
All rights reserved.
0
C 09
Monitor Resolution and Dot Pitch
.‫ووضوحا‬ ‫وضوحا‬ ‫ كانت الصورة أكثر‬، ‫ كلما زادت الدقة‬.‫تحدد دقة الشاشة عدد البكسل باألبعاد األفقية والرأسية لجهاز العرض‬
ً ً
resolution The screen resolution specifies the number of pixels in
horizontal and vertical dimensions of the display device.
The higher the resolution, the sharper and clearer the image
is. US l
IN J t.W.tl
gooo
saw
2531,1 sad
dot pitch The dot pitch is the amount of space between pixels,
measured in millimeters. The smaller the dot pitch, the
sharper the display.
‫ زادت‬، ‫ كلما كانت درجة النقطة أصغر‬.‫ وتُقاس باملليمترات‬، ‫خطوة النقطة هي مقدار املسافة بني البيكسالت‬
.‫حدة الشاشة‬
Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
All rights reserved.
0
Ma pi I
Communication Devices
A regular modem uses a phone line and can transfer data in a speed up to
56,000 bps (bits per second).
II I
Network interface card (NIC) is a device to connect a computer to a local
area network (LAN).

‫ بت في الثانية )بت‬56000 ‫يستخدم املودم العادي خط هاتف ويمكنه نقل البيانات بسرعة تصل إلى‬
.(‫في الثانية‬
.(LAN) ‫( هي جهاز لتوصيل جهاز كمبيوتر بشبكة محلية‬NIC) ‫بطاقة واجهة الشبكة‬

got
Imy
Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
All rights reserved.
0
Programs 2913
Computer programs, known as software, are Ld to
instructions

the computer. .‫ هي إرشادات للكمبيوتر‬، ‫ املعروفة باسم البرامج‬، ‫برامج الكمبيوتر‬

You tell a computer what to do through programs. Without


se o n i
programs, a computer is an empty machine. Computers do
not understand human languages, so you need to use
computer languages to communicate with them.
‫ ال تفهم أجهزة‬.‫ يكون الكمبيوتر آلة فارغة‬، ‫ بدون برامج‬.‫أنت تخبر الكمبيوتر بما يجب القيام به من خالل البرامج‬
.‫ لذلك تحتاج إلى استخدام لغات الكمبيوتر للتواصل معها‬، ‫الكمبيوتر لغات اإلنسان‬

Programs are written using programming languages.


.‫تتم كتابة البرامج باستخدام لغات البرمجة‬

Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
All rights reserved.
0
Programming Languages
I u 019
Machine Language pmAssembly Language High-Level Language

Machine language is a set of primitive instructions


built into every computer. The instructions are in
the form of binary code, so you have to enter binary
a o m on
codes for various instructions. Program with native
machine language is a tedious process.
so
Moreover
the programs are highly difficult to read and
modify. For example, to add two numbers, you
might write an instruction in binary like this:
‫ التعليمات‬.‫لغة اآللة هي مجموعة من التعليمات البدائية املضمنة في كل جهاز كمبيوتر‬
‫ يعد البرنامج‬.‫ لذلك عليك إدخال رموز ثنائية لتعليمات مختلفة‬، ‫في شكل رمز ثنائي‬
1101101010011010 .‫ من الصعب للغاية قراءة البرامج وتعديلها‬، ‫ عالوة على ذلك‬.‫بلغة اآللة األم عملية شاقة‬
:‫ يمكنك كتابة تعليمات في النظام الثنائي مثل هذا‬، ‫ إلضافة رقمني‬، ‫على سبيل املثال‬

Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
All rights reserved.
0
Programming Languages
Machine Language Assembly Language High-Level Language

Assembly languages were developed to make


programming easy. Since the computer cannot understand
assembly language, however, a program called assembler is
used to convert assembly language programs into machine
code. For example, to add two numbers, you might write an
instruction in assembly code like this:
ADDF3 R1, R2, R3

3 I a

_i

‫ يتم استخدام برنامج يسمى املجمع لتحويل‬، ‫نظرا ألن الكمبيوتر ال يستطيع فهم لغة التجميع‬ ً .‫تم تطوير لغات التجميع لجعل البرمجة سهلة‬
Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
ADDF3 R1، R2، :‫كتابة تعليمات في كود التجميع مثل هذا‬ ‫ يمكنك‬، ‫ إلضافة رقمني‬، ‫ على سبيل املثال‬.‫برامج لغة التجميع إلى رمز الجهاز‬
All rights reserved.
0
Programming Languages
Machine Language Assembly Language As High-Level Language

The high-level languages are English-like and easy to learn


and program. For example, the following is a high-level
language statement that computes the area of a circle with
radius 5:
area = 5 * 5 * 3.1415;
a
‫ ما يلي عبارة لغة عالية‬، ‫ على سبيل املثال‬.‫اللغات عالية املستوى شبيهة باإلنجليزية وسهلة التعلم والبرمجة‬
:5 ‫املستوى تحسب مساحة دائرة نصف قطرها‬

Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
All rights reserved.
0
Popular High-Level Languages
Its
W
Swt

Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
All rights reserved.
0
25 ps 1
I
Interpreting/Compiling Source Code
A program written in a high-level language is called
a source program or source code. Because a
computer cannot understand a source program, a
source program must be translated into machine
is I
code for execution. The translation can be done
using another programming tool called an
interpreter or a compiler.
‫نظرا ألن الكمبيوتر ال يمكنه‬
ً .‫يُطلق على البرنامج املكتوب بلغة عالية املستوى اسم البرنامج املصدر أو الكود املصدري‬
‫ يمكن أن تتم الترجمة باستخدام أداة‬.‫ يجب ترجمة البرنامج املصدر إلى رمز الجهاز للتنفيذ‬، ‫فهم البرنامج املصدر‬
.‫برمجة أخرى تسمى مترجم أو مترجم‬

Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
All rights reserved.
0
095
see
Interpreting Source Code
An interpreter reads one statement from the source
code, translates it to the machine code and then
executes it right away A W
‫ ويترجمه إلى رمز الجهاز ثم ينفذه على الفور‬، ‫يقرأ املترجم بيانًا واح ًدا من الكود املصدري‬

WI

Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
All rights reserved.
0
Say Compiling Source Code
A compiler translates the entire source code into a
machine-code file, and the machine-code file is then
executed, as shown in the following figure.
.‫ كما هو موضح في الشكل التالي‬، ‫ ثم يتم تنفيذ ملف كود اآللة‬، ‫يترجم املترجم شفرة املصدر بالكامل إلى ملف كود اآللة‬

Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
All rights reserved.
0
III
Operating Systems
The operating system (OS) is a
program that manages and controls
a computer’s activities. The
popular operating systems for O
ye
general-purpose computers
are Microsoft Windows, Mac
u
OS, and sLinux. Application
programs, such as a Web int
browser or a word processor,
cannot run unless an
s
operating system is installed 6551,69
and running on the computer. 8,81
‫ أنظمة التشغيل الشائعة ألجهزة الكمبيوتر ذات األغراض العامة هي‬.‫( هو برنامج يدير أنشطة الكمبيوتر ويتحكم فيها‬OS) ‫نظام التشغيل‬
‫ ما لم يتم‬، ‫ مثل مستعرض الويب أو معالج النصوص‬، ‫ ال يمكن تشغيل برامج التطبيقات‬.Linux ‫ و‬Mac OS ‫ و‬Microsoft Windows
.‫تثبيت نظام التشغيل وتشغيله على الكمبيوتر‬
Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
All rights reserved.
0
‫ تمكن املستخدمني من‬Java ‫اإلجابة هي أن‬
‫تطوير ونشر التطبيقات على اإلنترنت للخوادم‬
‫وأجهزة الكمبيوتر املكتبية واألجهزة املحمولة‬ Why Java?
‫الصغيرة‬

The answer is that Java enables users to develop and


deploy applications on the Internet for servers, desktop
computers, and small hand-held devices.
FJava is a general purpose programming language.

Java ‫هي لغة برمجة لألغراض العامة‬. I


IS
4 Uh W 2

411645 1 3

I 9
283.1 MME

Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
All rights reserved.
0
00 112153
Java, Web, and Beyond
I
D
F Java can be used to develop standalone
applications. .‫التطبيقات‬٠‫ لتطوير قائمة بذاتها‬Java ‫يمكن استخدام‬

F Java can be used to develop applications


running from a browser. .‫ لتطوير التطبيقات يعمل من املتصفح‬Java ‫يمكن استخدام‬
F Java can also be used to develop applications
for hand-held devices..‫ لتطوير التطبيقات لألجهزة املحمولة باليد‬Java ‫يمكن ًأيضا استخدام‬
F Java can be used to develop applications for
Web servers. .‫ لتطوير تطبيقات لـ خوادم الويب‬Java ‫يمكن استخدام‬

Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
All rights reserved.
0
x Java’s History
F James Gosling and Sun Microsystems
F Java, May 20, 1995, Sun World

http://www.java.com/en/javahistory/index.jsp

Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
All rights reserved.
0
Companion 611 17
Website
Characteristics of Java
F Java Is Simple Java is partially modeled on C++, but greatly
simplified and improved. Some people refer to
F Java Is Object-Oriented Java as "C++--" because it is like C++ but
F Java Is Distributed with more functionality and fewer negative
aspects.
F Java Is Interpreted + C ‫ جزئ ًيا على طراز‬Java ‫تم تصميم‬ eat Ntt
F Java Is Robust ‫ ولكن تم تبسيطها وتحسينها بشكل‬، +
‫ يشير بعض األشخاص إلى‬.‫كبير‬
F Java Is Secure + C ‫" ألنها تشبه‬- ++ C" ‫ باسم‬Java
‫ ولكن مع وظائف أكثر وجوانب سلبية‬+
F Java Is Architecture-Neutral .‫أقل‬

F Java Is Portable
F Java's Performance
F Java Is Multithreaded
F Java Is Dynamic

Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
All rights reserved.
0
Companion
Website
Characteristics of Java
‫( هي نهج برمجة شائع يحل محل تقنيات البرمجة اإلجرائية‬OOP) ‫ البرمجة الشيئية‬.‫ من البداية ليكون موج ًها للكائنات‬Java ‫تم تصميم‬

F Java Is Simple Java was designed from the start to be


object-oriented. Object-oriented
F Java Is Object-Oriented programming (OOP) is a popular
F Java Is Distributed programming approach that is replacing
traditional procedural programming
F Java Is Interpreted techniques.
F Java Is Robust
One of the central issues in software
F Java Is Secure development is how to reuse code.
F Java Is Architecture-Neutral ‫إحدى القضايا املركزية في تطوير البرمجيات هي كيفية‬
.‫إعادة استخدام الكود‬
F Java Is Portable
F Java's Performance
F Java Is Multithreaded
F Java Is Dynamic

Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
All rights reserved.
0
Companion
Website
Characteristics of Java
F Java Is Simple Distributed computing involves several
computers working together on a network.
F Java Is Object-Oriented Java is designed to make distributed
F Java Is Distributed computing easy.

F Java Is Interpreted
F Java Is Robust
II Es I 21st
‫تتضمن الحوسبة املوزعة عدة أجهزة كمبيوتر تعمل م ًعا‬
F Java Is Secure ‫ لجعل الحوسبة املوزعة‬Java ‫ تم تصميم‬.‫على شبكة‬
.‫سهلة‬
F Java Is Architecture-Neutral
F Java Is Portable
F Java's Performance
F Java Is Multithreaded
F Java Is Dynamic

Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
All rights reserved.
0
Companion
Website
Characteristics of Java
F Java Is Simple The programs are compiled into the Java
Virtual Machine code called bytecode. The
F Java Is Object-Oriented bytecode is machine-independent and can
F Java Is Distributed run on any machine that has a Java
interpreter, which is part of the Java
F Java Is Interpreted Virtual Machine (JVM).
F Java Is Robust Java Virtual ‫يتم تجميع البرامج في كود‬
‫ الرمز الثانوي‬.bytecode ‫ املسمى‬Machine
F Java Is Secure ‫مستقل عن اآللة ويمكن تشغيله على أي جهاز يحتوي‬
F Java Is Architecture-Neutral Java Virtual ‫ وهو جزء من‬، Java ‫على مترجم‬
.Machine (JVM)
F Java Is Portable
F Java's Performance
F Java Is Multithreaded
F Java Is Dynamic

Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
All rights reserved.
0
Companion
Website
Characteristics of Java .‫يمكن ملجمعي جافا اكتشاف العديد من املشكالت‬

F Java Is Simple Java compilers can detect many problems.


.‫ أنوا ًعا معينة من بنيات البرمجة املعرضة لألخطاء املوجودة في لغات أخرى‬Java ‫ألغت‬
F Java Is Object-Oriented Java has eliminated certain types of error-
F Java Is Distributed prone programming constructs found in
other languages.
F Java Is Interpreted
F Java Is Robust Java has a runtime exception-handling
feature to provide programming support
F Java Is Secure for robustness.
‫ على ميزة معالجة استثناءات‬Java ‫تحتوي‬
F Java Is Architecture-Neutral ‫وقت التشغيل لتوفير دعم البرمجة من أجل‬
.‫املتانة‬
F Java Is Portable
F Java's Performance
F Java Is Multithreaded
F Java Is Dynamic

Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
All rights reserved.
0
Companion
Website
Characteristics of Java
F Java Is Simple
F Java Is Object-Oriented
F Java Is Distributed
F Java Is Interpreted
Java implements several security
F Java Is Robust mechanisms to protect your system against
harm caused by stray programs.
F Java Is Secure .‫جافا آمنة‬
‫ هي‬F Java ‫ بتنفيذ العديد من األمان‬Java ‫تقوم‬
F Java Is Architecture-Neutral ‫ هو الضرر‬F Java ‫آليات قوية لحماية نظامك من‬
.‫اآلمن الناجم عن البرامج الضالة‬
F Java Is Portable
F Java's Performance
F Java Is Multithreaded
F Java Is Dynamic

Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
All rights reserved.
0
Companion
Website
Characteristics of Java
F Java Is Simple
F Java Is Object-Oriented
F Java Is Distributed
F Java Is Interpreted
F Java Is Robust
F Java Is Secure
‫جافا هندسة معمارية محايدة‬
F Java Is Architecture-Neutral Write once, run anywhere
F Java Is Portable With a Java Virtual Machine (JVM), you
can write one program that will run on any
F Java's Performance
platform.
F Java Is Multithreaded ‫ وقم بالتشغيل في أي مكان باستخدام‬، ‫اكتب مرة واحدة‬
‫ يمكنك كتابة برنامج‬، Java Virtual Machine (JVM)
F Java Is Dynamic .‫واحد يعمل على أي نظام أساسي‬

Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
All rights reserved.
0
Companion
Website
Characteristics of Java
F Java Is Simple
F Java Is Object-Oriented
F Java Is Distributed
F Java Is Interpreted
F Java Is Robust
F Java Is Secure
F Java Is Architecture-Neutral ‫يمكن تشغيلها على أي منصة‬
‫جافا محمولة‬
They can be run on any platform
F Java Is Portable
F Java's Performance
F Java Is Multithreaded
F Java Is Dynamic

Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
All rights reserved.
0
Companion
Website
Characteristics of Java
F Java Is Simple
F Java Is Object-Oriented
F Java Is Distributed
F Java Is Interpreted
F Java Is Robust
F Java Is Secure
F Java Is Architecture-Neutral
They can be run on any platform without
F Java Is Portable
‫أداء جافا‬ being recompiled.
F Java's Performance .‫يمكن تشغيلها على أي منصة دون إعادة تجميعها‬
F Java Is Multithreaded
F Java Is Dynamic

Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
All rights reserved.
0
Companion
Website
Characteristics of Java
F Java Is Simple
F Java Is Object-Oriented
F Java Is Distributed
F Java Is Interpreted
F Java Is Robust
F Java Is Secure
F Java Is Architecture-Neutral
F Java Is Portable ‫جافا متعددة مؤشرات الترابط متكاملة في جافا‬

F Java's Performance Multithread programming is smoothly


‫جافا هو متعدد مؤشرات الترابط‬ integrated in Java
F Java Is Multithreaded
F Java Is Dynamic

Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
All rights reserved.
0
Companion
Website
‫جافا بسيطة‬
Characteristics of Java
F Java Is Simple
‫جافا هي وجوه املنحى‬
F Java Is Object-Oriented
Java ‫يتم توزيع‬
F Java Is Distributed
‫يتم تفسير جافا‬
F Java Is Interpreted
‫جافا قوية‬
F Java Is Robust
‫جافا آمنة‬
F— Java Is Secure .‫ املتطورة‬Java ‫ للتكيف مع بيئة أداء‬Java ‫تم تصميم‬
‫جافا تكتب الرنامج مرة واحدة وتعيد استخدامة‬
F Java Is ‫يمكن تحميل كود جديد على الطاير‬
F Java Is Architecture-Neutral .‫ دون إعادة تجميع‬Multithreaded
‫جافا محملة مو محتاج احمل مترجم عشان تشتغل‬
F Java Is Portable
‫أداء جافا‬ Java was designed to adapt to an evolving
F Java's Performance environment. New code can be loaded on the fly
‫جافا هو متعدد مؤشرات الترابط‬
without recompilation.
F Java Is Multithreaded
‫جافا ديناميكي‬
F Java Is Dynamic

Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
All rights reserved.
0
60134 It Ilja's
JDK Versions
F JDK 1.02 (1995)
F .
F .
F .
F JDK 1.8 (2014) a. k. a. JDK 8 or Java 8
F .
F .
F JDK 15 September, 2020

Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
All rights reserved.
0
5
JDK Editions
.‫ لتطوير تطبيقات أو تطبيقات صغيرة مستقلة من جانب العميل‬J2SE ‫ يمكن استخدام‬- (J2SE) ‫جافا اإلصدار القياسي‬
ops
F Java Standard Edition (J2SE)
– J2SE can be used to develop client-side standalone
applications or applets.
of
F Java Enterprise Edition (J2EE)
– J2EE can be used to develop server-side applications
135 26
such as Java servlets, Java ServerPages, and Java
ServerFaces.
F Java Micro Edition (J2ME).
– J2ME can be used to develop applications for mobile
devices such as cell phones.
This book uses J2SE to introduce Java
programming.
Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
All rights reserved.
0
Popular Java IDEs
F NetBeans 910181 133
Java Enterprise Edition
F Eclipse (J2EE) ‫ يمكن استخدام‬J2EE
‫لتطوير تطبيقات من جانب الخادم‬
‫ مثل‬Java servlets ‫و‬
JavaServerPages ‫ و‬Java
ServerFaces
I
98
Java Micro Edition

1601 a 9183 (J2ME).


-
‫ لتطوير‬J2ME ‫يمكن استخدام‬
w If ‫تطبيقات لألجهزة املحمولة مثل‬

ftp.sg .‫الهواتف املحمولة‬

‫دعواتكم‬
‫عزيزه الطالب‬: ‫أختكم‬

Liang, Introduction to Java Programming, Eleventh Edition, (c) 2018 Pearson Education, Ltd.
All rights reserved.
0

You might also like