Quiz
Java Concurrency and Session Management
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (10)
1Concurrency in Java. Which is not a state of a thread?
- ADead
- BSleeping
- CPause
- DRunning
- EResumed
2"Determines if the thread is running or not". This statement is describing:
- AIsAlive()
- BStop()
- CisDaemon()
- Drun()
- Estart()
3In Java, the following methods are vulnerable to race condition:
- Astart(), stop(), init(), wait(), pause()
- Bstart(), stop(), time(), init(), destroy()
- CnotifiyAll(), notify() syncronized, java.lang.thread
- Dstop(), isDaemon(), getThreadGroup()
- Enone of the above
4Which of the following statements is for the use of ThreadPool instead of ThreadGroup?
- AUsing few methods of the threadgroup class is not considered thread-safe
- BNewly created thread may lead to peromance overhead
- CControlling too may threads is not easy and might result in errors in the memory
- DA thread pool is a set of work queue of runnables and running thread connections
- ENone of the above
5When an object is built and then occurs: the race condition, improper initialization and leaks, it is because:
- Aif "terminated" reference is not used
- Bif "exception handler" is not used
- Cif "this" reference is used
- Dif "terminated" reference is used
- Eif "this" reference is not used
6Which statement is not a prevention technique DeadLock?
- ADeadLock detection
- BLock Timeout
- COrdering of Locks
- DDeadlock mutable
- ENone of the above
7Which of the following is not a safe practice for handling threads?
- AUse join() method
- BSetting priorities for threads
- COrdering of Locks
- DAvoid publishing "this" reference during construction
- EDocument the order
8Check the statement that is not a type of session hijacking attack:
- AUser enumeration
- BStealing Session ID through HTTP Get request
- CAttack using Client-Side Scripting
- DSession Fixation
- EAttack through HTTP Header response
9Indicate which are the guidelines for Secured sessions Management :
- APassword Strength
- BPassword Storage
- CPassword Use
- DBrowser Caching
- EAll of the above
10"Date formats in java are not synchronized". This feature belongs to:
- ARace condition prevention
- BDateFormat in multi-threaded environment
- CUse join() method
- DDocument the order
- ESetting priorities for threads
Information
- Description
- Java Concurrency and Session Management
- Author
- Carlos Veliz
- Language
- Español
- Views
- 180
- Tags
- Rating
- No ratings yet Rate this quiz