— Scott McNealy, Sun Microsystems Chairman, President and ceo



Download 40,57 Mb.
Pdf ko'rish
bet28/555
Sana26.05.2022
Hajmi40,57 Mb.
#609235
1   ...   24   25   26   27   28   29   30   31   ...   555
Bog'liq
Head First Java (Kathy Sierra, Bert Bates) (z-lib.org)

this is a new chapter
1
Java takes you to new places.
 
From its humble release to the 
public as the 
(wimpy) version 1.02, Java seduced programmers with its friendly syntax, object-oriented features, 
memory management, and best of all —the promise of portability. The lure of 
write-once/run-
anywhere
is just too strong. A devoted following exploded, as programmers fought against bugs, 
limitations, and, oh yeah, the fact that it was dog slow. But that was ages ago. If you’re just starting in 
Java, 
you’re lucky
. Some of us had to walk fi ve miles in the snow, uphill both ways (barefoot), to 
get even the most trivial applet to work. But you, why, you get to ride the 
sleeker, faster, much 
more powerful
Java of today.
Br
eak
in
g t
he
Su
rf
ac
e
Come on, the water’s 
great! We’ll dive right in and 
write some code, then compile and 
run it. We’re talking syntax, looping 
and branching, and a look at what 
makes Java so cool. You’ll be 
coding in no time.
Make it Stick
1

dive in 
A Quick Dip


2
 
chapter 1
You Bet
Shoot Me
The Way Java Works
source code for 
the interactive 
party invitation.
Method Party()
0 aload_0
1 invokespe-
cial #1 java.lang.Object()>
4 return
Create a source 
document. Use an 
established protocol 
(in this case, the Java 
language).
Source
1
Compiler
Output
(code)
Virtual
Machines
The goal is to write one application (in this 
example, an interactive party invitation) and have 
it work on whatever device your friends have.
Run your document 
through a source code 
compiler. The compiler 
checks for errors and 
won’t let you compile 
until it’s satisfi ed that 
everything will run 
correctly.

Download 40,57 Mb.

Do'stlaringiz bilan baham:
1   ...   24   25   26   27   28   29   30   31   ...   555




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish