Cracking the Java Coding Interview pdfdrive com


Question why is XML such an important development? (XML)


Download 1.48 Mb.
Pdf ko'rish
bet85/182
Sana02.05.2023
Hajmi1.48 Mb.
#1423275
1   ...   81   82   83   84   85   86   87   88   ...   182
Bog'liq
Cracking the Java Coding Interview ( PDFDrive )

Question why is XML such an important development? (XML)
Answer It removes two constraints which were holding back Web developments:
1. Dependence on a single, inflexible document type (HTML) which
Was being much abused for tasks it was never designed for;
2. The complexity of full SGML, whose syntax allows many powerful
But hard-to-program options. XML allows the flexible development of user-
defined document types. It provides a robust, non-proprietary, persistent, and
verifiable file format for the storage and transmission of text and data both on
and off the Web; and it removes the more complex options of SGML, making it
easier to program for.
Question Are enterprise beans allowed to use Thread.sleep()? (EJB)
Answer Enterprise beans make use of the services provided by the EJB
container, such as lifecycle management. To avoid conflicts with these services,
enterprise beans are restricted from performing certain operations: Managing or
synchronizing threads


Question Is it possible to write two EJB's that share the same Remote and
Home interfaces, and have different bean classes? if so, what are the
advantages/disadvantages? (EJB)
Answer It's certainly possible. In fact, there's an example that ships with the
Inprise Application Server of an Account interface with separate
implementations for CheckingAccount and SavingsAccount, one of which was
CMP and one of which was BMP.
Question Is it possible to specify multiple JNDI names when deploying an
EJB? (EJB)
Answer No. To achieve this you have to deploy your EJB multiple times each
specifying a different JNDI name.
Question Is there any way to force an Entity Bean to store itself to the db? I
don't wanna wait for the container to update the db, I want to do it NOW!

Download 1.48 Mb.

Do'stlaringiz bilan baham:
1   ...   81   82   83   84   85   86   87   88   ...   182




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