Java Concurrency and Session Management

Descrição

Java Concurrency and Session Management
Carlos Veliz
Quiz por Carlos Veliz, atualizado more than 1 year ago
Carlos Veliz
Criado por Carlos Veliz aproximadamente 9 anos atrás
109
0

Resumo de Recurso

Questão 1

Questão
Concurrency in Java. Which is not a state of a thread?
Responda
  • Dead
  • Sleeping
  • Pause
  • Running
  • Resumed

Questão 2

Questão
"Determines if the thread is running or not". This statement is describing:
Responda
  • IsAlive()
  • Stop()
  • isDaemon()
  • run()
  • start()

Questão 3

Questão
In Java, the following methods are vulnerable to race condition:
Responda
  • start(), stop(), init(), wait(), pause()
  • start(), stop(), time(), init(), destroy()
  • notifiyAll(), notify() syncronized, java.lang.thread
  • stop(), isDaemon(), getThreadGroup()
  • none of the above

Questão 4

Questão
Which of the following statements is for the use of ThreadPool instead of ThreadGroup?
Responda
  • 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

Questão 5

Questão
When an object is built and then occurs: the race condition, improper initialization and leaks, it is because:
Responda
  • 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

Questão 6

Questão
Which statement is not a prevention technique DeadLock?
Responda
  • DeadLock detection
  • Lock Timeout
  • Ordering of Locks
  • Deadlock mutable
  • None of the above

Questão 7

Questão
Which of the following is not a safe practice for handling threads?
Responda
  • Use join() method
  • Setting priorities for threads
  • Ordering of Locks
  • Avoid publishing "this" reference during construction
  • Document the order

Questão 8

Questão
Check the statement that is not a type of session hijacking attack:
Responda
  • User enumeration
  • Stealing Session ID through HTTP Get request
  • Attack using Client-Side Scripting
  • Session Fixation
  • Attack through HTTP Header response

Questão 9

Questão
Indicate which are the guidelines for Secured sessions Management :
Responda
  • Password Strength
  • Password Storage
  • Password Use
  • Browser Caching
  • All of the above

Questão 10

Questão
"Date formats in java are not synchronized". This feature belongs to:
Responda
  • Race condition prevention
  • DateFormat in multi-threaded environment
  • Use join() method
  • Document the order
  • Setting priorities for threads

Semelhante

Introduction to Java Security
Carlos Veliz
Java Mix Test 42p
Carlos Veliz
Authentication and Authorization
Carlos Veliz
ECSP JAVA: JAAS
Carlos Veliz
Criptography
Carlos Veliz
Java - Mix
Carlos Veliz
Java Application Vulnerabilities
Carlos Veliz
Java Mix Test 42p
Jose Luis Vasquez Galvez
Biologia e Geologia - Biologia 10º ano, parte II - Ensino Secundário Português
Heres Oliveira
Todos os verbos irregulares em inglês com tradução
Luiz Fernando
SISTEMA ENDÓCRINO
STELA FAUSTINO