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