Welcome to the 5 Minute Java Test

1.

Question: Which of the following classes will you use to generate random int values from multiple threads without degrading performance?

Select 1 option(s)

2.

Question: Which of the following are required to construct a Locale?

Select 1 option(s)

3.

Question: java.util.Locale allows you to do which of the following?

Select 2 option(s)

4.

Question:

Assume the following declarations:

class A{ }

 

 class B extends A{ }

class C extends B{ }

class X{

 B getB(){ return new B(); }

 }

class Y extends X{

  //method declaration here

 }

Which of the following methods can be inserted in class Y?

Select 2 option(s):

5.

Question:

In Java, Strings are immutable. A direct implication of this is...

Select 2 option(s)

6.

Question:

You are working on an application that is NOT structured as a modular application. However, you need to use a third party library that is packaged as a modular jar:-

named abc.utils.jar in your application.

Given that you launch your application using a class named Main, which of the following options should be used to make sure your application is able to access the

classes in the third party jar.

(Assume that abc.utils.jar and your application classes are in current directory.)

Select 1 option(s):