null
US
Sign In
Sign Up for Free
Sign Up
We have detected that Javascript is not enabled in your browser. The dynamic nature of our site means that Javascript must be enabled to function properly. Please read our
terms and conditions
for more information.
Next up
Copy and Edit
You need to log in to complete this action!
Register for Free
18582569
Java Concurrency and Session Management
Description
Java Concurrency and Session Management
No tags specified
ecsp java
test 5
session management
informática
Quiz by
Jose Luis Vasquez Galvez
, updated more than 1 year ago
More
Less
Created by
Carlos Veliz
over 9 years ago
Copied by
Jose Luis Vasquez Galvez
over 5 years ago
2
0
0
Resource summary
Question 1
Question
Concurrency in Java. Which is not a state of a thread?
Answer
Dead
Sleeping
Pause
Running
Resumed
Question 2
Question
"Determines if the thread is running or not". This statement is describing:
Answer
IsAlive()
Stop()
isDaemon()
run()
start()
Question 3
Question
In Java, the following methods are vulnerable to race condition:
Answer
start(), stop(), init(), wait(), pause()
start(), stop(), time(), init(), destroy()
notifiyAll(), notify() syncronized, java.lang.thread
stop(), isDaemon(), getThreadGroup()
none of the above
Question 4
Question
Which of the following statements is for the use of ThreadPool instead of ThreadGroup?
Answer
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
Question 5
Question
When an object is built and then occurs: the race condition, improper initialization and leaks, it is because:
Answer
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
Question 6
Question
Which statement is not a prevention technique DeadLock?
Answer
DeadLock detection
Lock Timeout
Ordering of Locks
Deadlock mutable
None of the above
Question 7
Question
Which of the following is not a safe practice for handling threads?
Answer
Use join() method
Setting priorities for threads
Ordering of Locks
Avoid publishing "this" reference during construction
Document the order
Question 8
Question
Check the statement that is not a type of session hijacking attack:
Answer
User enumeration
Stealing Session ID through HTTP Get request
Attack using Client-Side Scripting
Session Fixation
Attack through HTTP Header response
Question 9
Question
Indicate which are the guidelines for Secured sessions Management :
Answer
Password Strength
Password Storage
Password Use
Browser Caching
All of the above
Question 10
Question
"Date formats in java are not synchronized". This feature belongs to:
Answer
Race condition prevention
DateFormat in multi-threaded environment
Use join() method
Document the order
Setting priorities for threads
Show full summary
Hide full summary
Want to create your own
Quizzes
for
free
with GoConqr?
Learn more
.
Similar
FUNDAMENTOS DE REDES DE COMPUTADORAS
anhita
Test: "La computadora y sus partes"
Dayana Quiros R
Abreviaciones comunes en programación web
Diego Santos
Seguridad en la red
Diego Santos
Excel Básico-Intermedio
Diego Santos
Evolución de la Informática
Diego Santos
Introducción a la Ingeniería de Software
David Pacheco Ji
Conceptos básicos de redes
ARISAI DARIO BARRAGAN LOPEZ
La ingenieria de requerimientos
Sergio Abdiel He
TECNOLOGÍA TAREA
Denisse Alcalá P
Navegadores de Internet
M Siller
Browse Library