Pergunta de entrevista da empresa Imperva

How to compare Strings in java, how to use threads in Java, what are the cons and pros of each method, what is the difference between Int and int, what is synchronized. Design a solution for a Puzzle game.

Resposta da entrevista

Sigiloso

1 de jun. de 2018

Use built in string compare Probably best to create a thread pool and then submit jobs to the pool. Integer is an object wrapper for primitive type int. Synchronized prevents two threads from accessing the critical section of code at the same time.