Concurrency in Java. Which is not a state of a thread?
Dead
Sleeping
Pause
Running
Resumed
"Determines if the thread is running or not". This statement is describing:
IsAlive()
Stop()
isDaemon()
run()
start()
In Java, the following methods are vulnerable to race condition:
start(), stop(), init(), wait(), pause()
start(), stop(), time(), init(), destroy()
notifiyAll(), notify() syncronized, java.lang.thread
stop(), isDaemon(), getThreadGroup()
none of the above
Which of the following statements is for the use of ThreadPool instead of ThreadGroup?
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
When an object is built and then occurs: the race condition, improper initialization and leaks, it is because:
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
Which statement is not a prevention technique DeadLock?
DeadLock detection
Lock Timeout
Ordering of Locks
Deadlock mutable
Which of the following is not a safe practice for handling threads?
Use join() method
Setting priorities for threads
Avoid publishing "this" reference during construction
Document the order
Check the statement that is not a type of session hijacking attack:
User enumeration
Stealing Session ID through HTTP Get request
Attack using Client-Side Scripting
Session Fixation
Attack through HTTP Header response
Indicate which are the guidelines for Secured sessions Management :
Password Strength
Password Storage
Password Use
Browser Caching
All of the above
"Date formats in java are not synchronized". This feature belongs to:
Race condition prevention
DateFormat in multi-threaded environment