Welcome to the 5 Minute Java Test

1.

Question: What would be the result of attempting to compile and run the following program?

class TestClass{

    static TestClass ref;

   String[] arguments;

   public static void main(String args[]){

       ref = new TestClass();

       ref.func(args);

   }

     public void func(String[] args){

      ref.arguments = args;

    }

}

Select 1 option(s):

2.

Question: Which of the following features are provided by a JDK?

Select 2 option(s):

3.

Question:

Identify the correct statements regarding JDBC.

Select 1 option(s)

4.

Question:

Identify correct statements about the modular system of Java.

Select 3 option(s):

5.

Question: Which of the following are benefits of the Java module system?

Select 1 option(s)
6.

Question:

Consider:-

class A {}

class B extends A {}

class C extends B {}

Which of these boolean expressions correctly identifies when an object 'o' actually refers to an object of class B and not of C?

Select 2 option(s):