PRJ 311 Full Test Bank | Complete Solutions (Verified)
3 vues 0 fois vendu
Cours
PRJ 311
Établissement
PRJ 311
PRJ 311 Full Test Bank | Complete Solutions (Verified) To get an object NumberFormat class that initialized to the specified locale, we use a. getNumberFormat() b. getCurrencyInstance() c. getNumberInstance() d. getInstance() Which type of driver can interpret JDBC calls to the database-specific ...
To get an object NumberFormat class that initialized to the specified locale, we use
a. getNumberFormat()
b. getCurrencyInstance()
c. getNumberInstance()
d. getInstance()
Which type of driver can interpret JDBC calls to the database-specific native call
interface
a. Type-1
b. Type-2
c. Type-4
d. Type-3
Which are advantages of JDBC? (select two)
a. enable connecting to any database system
b. vendor independent
c. platform independent
d. database access faster than other languages
Formatting the captions of the GUI components ensures that the look and feel of the
application is in a locale-sensitive manner
a. TRUE
b. FALSE
Which statements are CORRECT about properties file? (Select 2)
a. A Locale is an identifier for a particular combination of language and region
b. To create a properties file, it must use Netbeans or a Java editor
c. Extensions of the properties file must be ".properties"
Internationalized software should be developed such that it can be adapted without
engineering changes
a. FALSE
b. TRUE
Which type of driver can use a bridging technology that provides JDBC access via
ODBC drivers
a. Type-4
,b. Type-2
c. Type-1
d. Type-3
RMI does not allow you to serialize and transmit objects
a. TRUE
b. FALSE
Which distributed object technology is most appropriate for systems that consist entirely
of Java objects?
a. CORBA
b. RMI
c. DOM
d. DCE
When using URL class, which method is used to make a connection with that URL?
a. makeConnection()
b. openConnection()
c. connect()
d. accept()
When a connection is established, we can get which streams
a. input stream
b. output stream
c. both input stream and output stream
d. in-out stream
A server must retrieve the InputStream and OutputStream from the proxy socket object
to communicate with the client
a. FALSE
b. TRUE
The _______ method wakes up all threads that are waiting for a monitor
a. notify()
b. join()
c. notifyAll()
d. wait()
Which RMI layer make invocation to remote methods
a. Remote Reference layer
,b. Transport layer
c. Stub and Skeleton layer
______ facilitates many parts of same program to run serially but access a same
resource
a. Multithread
b. DaemonThread
c. Threading
d. MonoThread
You are trying to retrieve the InputStream of the socket. Which of the options will help
you to achieved this?
a. Socket socket;
String host;
BufferedReader reader;
try {
socket = new Socket("localhost", -200);
reader = new BufferedReader(new InputStreamReader(socket.getInputStream()));
} catch(Exception ex) {
ex.printStackTrace();
}
b. Socket socket;
String host;
BufferedReader reader;
try {
socket = new Socket("localhost", 200);
reader = new BufferedReader(new InputStreamReader(socket.getInputStream()));
} catch(Exception ex) {
ex.printStackTrace();
} Correct
c. Socket socket;
String host;
BufferedReader reader;
try {
socket = new Socket("localhost", 200);
reader = new BufferedReader(new InputStreamReader(socket.getStream()));
} catch(Exception ex) {
ex.printStackTrace();
}
d. Socket socket;
String host;
BufferedReader reader;
try {
socket = new Socket("localhost", 200);
To create ServerSocket object, it should know the address or port of the client to
communicate
a. TRUE
b. FALSE
A remote object is an instance of the class that implements the java.rmi.Remote
interface
a. FALSE
b. TRUE
The _______ condition describes a situation where two or more threads a blocked
forever, waiting for each other
a. synchronization
b. race
c. blocking
d. deadlock
Remote object and remote server are the same concept
a. TRUE
b. FALSE
_____ is used to transmit and receive data
a. Transport layer
b. Remote Reference layer
c. Stub and Skeleton layer
All the remote methods declared should be qualified to throw the exception
___________
a. java.rmi.RemoteException
b. java.rmi.ServerRuntimeException
c. java.rmi.MarshalException
d. java.rmi.RMIException
Which class stores information about an Internet resource address including host name,
file name, port number.
a. URL
b. Connection
Les avantages d'acheter des résumés chez Stuvia:
Qualité garantie par les avis des clients
Les clients de Stuvia ont évalués plus de 700 000 résumés. C'est comme ça que vous savez que vous achetez les meilleurs documents.
L’achat facile et rapide
Vous pouvez payer rapidement avec iDeal, carte de crédit ou Stuvia-crédit pour les résumés. Il n'y a pas d'adhésion nécessaire.
Focus sur l’essentiel
Vos camarades écrivent eux-mêmes les notes d’étude, c’est pourquoi les documents sont toujours fiables et à jour. Cela garantit que vous arrivez rapidement au coeur du matériel.
Foire aux questions
Qu'est-ce que j'obtiens en achetant ce document ?
Vous obtenez un PDF, disponible immédiatement après votre achat. Le document acheté est accessible à tout moment, n'importe où et indéfiniment via votre profil.
Garantie de remboursement : comment ça marche ?
Notre garantie de satisfaction garantit que vous trouverez toujours un document d'étude qui vous convient. Vous remplissez un formulaire et notre équipe du service client s'occupe du reste.
Auprès de qui est-ce que j'achète ce résumé ?
Stuvia est une place de marché. Alors, vous n'achetez donc pas ce document chez nous, mais auprès du vendeur NurseHenny. Stuvia facilite les paiements au vendeur.
Est-ce que j'aurai un abonnement?
Non, vous n'achetez ce résumé que pour €26,86. Vous n'êtes lié à rien après votre achat.