Return to site

JAVA CERTIFICATION QUESTION: Use primitives such as the % operator

· java

Imagine that your department is developing an application that accesses an external web service by host name.
High demand has led to a requirement for load balancing across a pool of servers,
and your colleague has implemented this by rotation.
At login, each application user is assigned to one server from the pool.
This is done based on a randomly generated single sign-on (SSO) token generated by the following code:

Which of the following statements is correct? Choose one.

A. The code compiles and properly rotates servers, distributing the load approximately evenly between two of them.
B. The code compiles, but always returns abc.xyz.
C. The code compiles, but always returns def.xyz.
D. The code compiles, but sometimes throws an exception.

 

 

 

 

 

 

 

 

 

 

 

 

·ꓷ sᴉ ɹǝʍsuɐ ǝɥꓕ

All Posts
×

Almost done…

We just sent you an email. Please click the link in the email to confirm your subscription!

OK