— Scott McNealy, Sun Microsystems Chairman, President and ceo



Download 40,57 Mb.
Pdf ko'rish
bet65/555
Sana26.05.2022
Hajmi40,57 Mb.
#609235
1   ...   61   62   63   64   65   66   67   68   ...   555
Bog'liq
Head First Java (Kathy Sierra, Bert Bates) (z-lib.org)

Note: Each snippet 
from the pool can be 
used more than once!
File Edit Window Help Implode
%java EchoTestDrive
helloooo...
helloooo...
helloooo...
helloooo...
10
Output
e1 = e1 + 1;
e1 = count + 1;
e1.count = count + 1;
e1.count = e1.count + 1;
e2 = e1;
Echo e2;
Echo e2 = e1;
Echo e2 = new Echo( );
x
y
e2
count
Echo
Tester
echo( )
count( )
hello( )
Bonus Question !
If the last line of output was 
24 instead of 10 how would 
you complete the puzzle ?
puzzle: 
Pool Puzzle


you are here
4
classes 
and 
objects
45
Who am I?
I am compiled from a .java file.
My instance variable values can
be different from my buddy’s
values.
I behave like a template.
I like to do stuff.
I can have many methods.
I represent ‘state’.
I have behaviors.
I am located in objects.
I live on the heap.
I am used to create object instances.
My state can change.
I declare methods.
I can change at runtime.
class
A bunch of Java components, in full costume, are playing a party 
game, “Who am I?” They give you a clue, and you try to guess who 
they are, based on what they say. Assume they always tell the truth 
about themselves. If they happen to say something that could be true 
for more than one of them, choose all for whom that sentence can 
apply. Fill in the blanks next to the sentence with the names of one or 
more attendees. The first one’s on us.

Download 40,57 Mb.

Do'stlaringiz bilan baham:
1   ...   61   62   63   64   65   66   67   68   ...   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