Which line of code belongs in a service locator? A. ServiceLoader sl = ServiceLoader.load(Mouse.class); B. ServiceLoader sl

Question:

Which line of code belongs in a service locator? 

A. ServiceLoader sl = ServiceLoader.load(Mouse.class);

B. ServiceLoader sl = ServiceLoader.loader(Mouse.class);

C. ServiceLoader sl = ServiceLoader.lookup(Mouse.class);

D. ServiceLocator sl = ServiceLoader.load(Mouse.class);

E. ServiceLocator sl = ServiceLoader.loader(Mouse.class);

F. ServiceLocator sl = ServiceLoader.lookup(Mouse.class);

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: