Pergunta de entrevista da empresa Scivantage

Final Round (Java): What are the different types of bean scopes How would you find the max 2 numbers from an unsorted unique array on ints. You cannot use any sorting mechanisms so just use loops. How would you remove duplicate consecutive words from a file. E.g My name is John John should be My name is John.