Carlos Veliz
Quiz por , criado more than 1 year ago

Java Concurrency and Session Management

111
0
0
Carlos Veliz
Criado por Carlos Veliz aproximadamente 9 anos atrás
Fechar

Java Concurrency and Session Management

Questão 1 de 10

1

Concurrency in Java. Which is not a state of a thread?

Selecione uma das seguintes:

  • Dead

  • Sleeping

  • Pause

  • Running

  • Resumed

Explicação

Questão 2 de 10

1

"Determines if the thread is running or not". This statement is describing:

Selecione uma das seguintes:

  • IsAlive()

  • Stop()

  • isDaemon()

  • run()

  • start()

Explicação

Questão 3 de 10

1

In Java, the following methods are vulnerable to race condition:

Selecione uma das seguintes:

  • start(), stop(), init(), wait(), pause()

  • start(), stop(), time(), init(), destroy()

  • notifiyAll(), notify() syncronized, java.lang.thread

  • stop(), isDaemon(), getThreadGroup()

  • none of the above

Explicação

Questão 4 de 10

1

Which of the following statements is for the use of ThreadPool instead of ThreadGroup?

Selecione uma das seguintes:

  • Using few methods of the threadgroup class is not considered thread-safe

  • Newly created thread may lead to peromance overhead

  • Controlling too may threads is not easy and might result in errors in the memory

  • A thread pool is a set of work queue of runnables and running thread connections

  • None of the above

Explicação

Questão 5 de 10

1

When an object is built and then occurs: the race condition, improper initialization and leaks, it is because:

Selecione uma das seguintes:

  • if "terminated" reference is not used

  • if "exception handler" is not used

  • if "this" reference is used

  • if "terminated" reference is used

  • if "this" reference is not used

Explicação

Questão 6 de 10

1

Which statement is not a prevention technique DeadLock?

Selecione uma das seguintes:

  • DeadLock detection

  • Lock Timeout

  • Ordering of Locks

  • Deadlock mutable

  • None of the above

Explicação

Questão 7 de 10

1

Which of the following is not a safe practice for handling threads?

Selecione uma das seguintes:

  • Use join() method

  • Setting priorities for threads

  • Ordering of Locks

  • Avoid publishing "this" reference during construction

  • Document the order

Explicação

Questão 8 de 10

1

Check the statement that is not a type of session hijacking attack:

Selecione uma das seguintes:

  • User enumeration

  • Stealing Session ID through HTTP Get request

  • Attack using Client-Side Scripting

  • Session Fixation

  • Attack through HTTP Header response

Explicação

Questão 9 de 10

1

Indicate which are the guidelines for Secured sessions Management :

Selecione uma das seguintes:

  • Password Strength

  • Password Storage

  • Password Use

  • Browser Caching

  • All of the above

Explicação

Questão 10 de 10

1

"Date formats in java are not synchronized". This feature belongs to:

Selecione uma das seguintes:

  • Race condition prevention

  • DateFormat in multi-threaded environment

  • Use join() method

  • Document the order

  • Setting priorities for threads

Explicação