Core Java® Volume I–Fundamentals


Chapter 6: Interfaces, Lambda Expressions, and Inner Classes



Download 37,53 Mb.
Pdf ko'rish
bet7/34
Sana06.01.2022
Hajmi37,53 Mb.
#325163
1   2   3   4   5   6   7   8   9   10   ...   34
Bog'liq
9780134177373-Vol-1

287

Chapter 6: Interfaces, Lambda Expressions, and Inner Classes ............

288


Interfaces ...................................................................................................

6.1


288

The Interface Concept ...............................................................

6.1.1

ix

Contents


From the Library of Hristo Dimov Hristov


ptg18360597

295


Properties of Interfaces .............................................................

6.1.2


297

Interfaces and Abstract Classes ...............................................

6.1.3

298


Static Methods ............................................................................

6.1.4


298

Default Methods ........................................................................

6.1.5

300


Resolving Default Method Conflicts .......................................

6.1.6


302

Examples of Interfaces ............................................................................

6.2

302


Interfaces and Callbacks ...........................................................

6.2.1


305

The 


Comparator

 Interface ................................................................

6.2.2

306


Object Cloning ...........................................................................

6.2.3


314

Lambda Expressions ...............................................................................

6.3

314


Why Lambdas? ..........................................................................

6.3.1


315

The Syntax of Lambda Expressions ........................................

6.3.2

318


Functional Interfaces .................................................................

6.3.3


319

Method References ....................................................................

6.3.4

321


Constructor References .............................................................

6.3.5


322

Variable Scope ............................................................................

6.3.6

324


Processing Lambda Expressions .............................................

6.3.7


328

More about Comparators .........................................................

6.3.8

329


Inner Classes .............................................................................................

6.4


331

Use of an Inner Class to Access Object State .........................

6.4.1

334


Special Syntax Rules for Inner Classes ...................................

6.4.2


335

Are Inner Classes Useful? Actually Necessary? Secure? ......

6.4.3

339


Local Inner Classes ....................................................................

6.4.4


339

Accessing Variables from Outer Methods ..............................

6.4.5

342


Anonymous Inner Classes .......................................................

6.4.6


346

Static Inner Classes ....................................................................

6.4.7

350


Proxies .......................................................................................................

6.5


350

When to Use Proxies .................................................................

6.5.1

350


Creating Proxy Objects .............................................................

6.5.2


355

Properties of Proxy Classes ......................................................

6.5.3


Download 37,53 Mb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9   10   ...   34




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