Core Java Interview Questions 1 What is the difference between an Abstract class and Interface?


) What is the relationship between a method's throws



Download 126,65 Kb.
Pdf ko'rish
bet44/55
Sana01.02.2022
Hajmi126,65 Kb.
#421305
1   ...   40   41   42   43   44   45   46   47   ...   55
Bog'liq
core java interview ques

164) What is the relationship between a method's throws
clause and the exceptions that can be thrown during the
method's execution?
A method's throws clause must declare any checked exceptions that are not caught within
the body of the method.
165) What is the difference between the JDK 1.02 event
model and the event-delegation model introduced with
JDK 1.1?
The JDK 1.02 event model uses an event inheritance or bubbling approach. In this model,
components are required to handle their own events. If they do not handle a particular
event, the event is inherited by (or bubbled up to) the component's container. The container
then either handles the event or it is bubbled up to its container and so on, until the
highest-level container has been tried..
In the event-delegation model, specific objects are designated as event handlers for GUI
components. These objects implement event-listener interfaces. The event-delegation
model is more efficient than the event-inheritance model because it eliminates the
processing required to support the bubbling of unhandled events.

Download 126,65 Kb.

Do'stlaringiz bilan baham:
1   ...   40   41   42   43   44   45   46   47   ...   55




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