Tag: technology

Questions Related to technology

  1. Compilation fails.

  2. An exception is thrown at runtime.

  3. The code executes and prints "running".

  4. The code executes and prints "runningrunning".

  5. The code executes and prints "runningrunningrunning".


Correct Option: E

DBD is physical description of database.

  1. True

  2. False


Correct Option: A
  1. This code may throw an InterruptedException

  2. This code may throw an IllegalStateException

  3. This code may throw a TimeoutException after ten minutes

  4. This code will not compile unless "obj.wait()" is replaced with "((Thread) obj).wait()".

  5. Reversing the order of obj.wait() and obj.notify() may cause this method to complete normally

  6. A call to notify() or notifyAll() from another thread may cause this method to complete normally


Correct Option: B
  1. java test

  2. java -ea test

  3. java test file1

  4. java -ea test file1

  5. java -ea test file1 file2

  6. java -ea:test test file1


Correct Option: B,C,E