Desenvolvedor Java Interview Questions

Desenvolvedor Java Interview Questions

Prepare-se para responder a perguntas técnicas que testam seu conhecimento básico de Java. Os entrevistadores também podem fazer perguntas abertas para avaliar suas habilidades de codificação e solução de problemas. Prepare-se para perguntas não técnicas relacionadas à sua gestão de tempo, comunicação interpessoal e ética profissional.

Principais perguntas de entrevista para desenvolvedor(a) Java e como respondê-las

Question 1

Pergunta 1: Qual é a diferença entre HashTable e HashMap no Java?

How to answer
Como responder: Os entrevistadores usam perguntas técnicas para avaliar seu treinamento formal e seu conhecimento da linguagem de programação Java. Demonstre suas habilidades de comunicação. Mesmo que você tenha bastante experiência com codificação, revise os conceitos básicos de Java antes da entrevista.
Question 2

Pergunta 2: Crie um programa para determinar se 243 é um número de Armstrong.

How to answer
Como responder: Os entrevistadores usam perguntas abertas para testar suas habilidades de codificação. Essa pergunta avalia sua capacidade de solucionar problemas usando um algoritmo Java. Explique seu raciocínio usando um editor de código ou uma lousa para resolver o problema.
Question 3

Pergunta 3: Como você cria códigos de qualidade quando precisa trabalhar em vários projetos Java ao mesmo tempo?

How to answer
Como responder: Desenvolvedores Java normalmente trabalham em vários projetos ao mesmo tempo. Os entrevistadores usam perguntas como essa para testar suas habilidades organizacionais e de gestão de tempo. Além disso, eles também avaliam seu compromisso com um trabalho de qualidade. Se você tiver experiência na área, inclua exemplos de trabalhos que demonstram alta qualidade e gestão de tempo eficaz.

30,842 desenvolvedor java interview questions shared by candidates

Online screen sharing interview questions Q) Remove html tags in a string Sample Input: <h1>Hello World!</h1> <p>something</p> Output: Hello World! something My Solution: public static String stripHtmlTags(String html){ html = html.replaceAll("<.*?>", " ");//replace tag with space html = html.replaceAll(" +", " ");//replace multi-spaces with a single space return html; } Q) Given an integer input array A, you need to create an integer output array B of same size such that each entry at index i, is stated as B[i] = A[0]*A[1]*....A[i-1]*A[i+1]*A[i+2]*.... So, it means we have to multiply all the numbers excluding the value at that index i. Sample Input: {3,1,6,4} Output: [24, 72, 12, 18] B[0] = 1*6*4, B[1] = 3*6*4, B[2] = 3*1*4, B[3] = 3*1*6 My Solution: /** * Assumptions: zero is not present in the numbers. * @param input int numbers * @return output int array */ public static int[] product(int[] input){ int prod = 1; int[] res = new int[input.length]; for(int ele:input) { prod *= ele; } for(int ind=0; ind<res.length; ind++) { res[ind] = prod/input[ind]; } return res; }
avatar

Java Software Engineer

Interviewed at Wallet Hub

4.2
Jun 30, 2017

Online screen sharing interview questions Q) Remove html tags in a string Sample Input: <h1>Hello World!</h1> <p>something</p> Output: Hello World! something My Solution: public static String stripHtmlTags(String html){ html = html.replaceAll("<.*?>", " ");//replace tag with space html = html.replaceAll(" +", " ");//replace multi-spaces with a single space return html; } Q) Given an integer input array A, you need to create an integer output array B of same size such that each entry at index i, is stated as B[i] = A[0]*A[1]*....A[i-1]*A[i+1]*A[i+2]*.... So, it means we have to multiply all the numbers excluding the value at that index i. Sample Input: {3,1,6,4} Output: [24, 72, 12, 18] B[0] = 1*6*4, B[1] = 3*6*4, B[2] = 3*1*4, B[3] = 3*1*6 My Solution: /** * Assumptions: zero is not present in the numbers. * @param input int numbers * @return output int array */ public static int[] product(int[] input){ int prod = 1; int[] res = new int[input.length]; for(int ele:input) { prod *= ele; } for(int ind=0; ind<res.length; ind++) { res[ind] = prod/input[ind]; } return res; }

The number of lilies in a pond double every day. So, on the first day of the month there is one lily. On the second day, two lilies. Then the next day four lilies, then eight, sixteen, thirty two, etc. If the pond is full on the 30th day of the month, what day is it half full?
avatar

Trainee Java Developer

Interviewed at Zycus

3.4
Dec 27, 2013

The number of lilies in a pond double every day. So, on the first day of the month there is one lily. On the second day, two lilies. Then the next day four lilies, then eight, sixteen, thirty two, etc. If the pond is full on the 30th day of the month, what day is it half full?

Viewing 121 - 130 interview questions

Glassdoor has 30,842 interview questions and reports from Desenvolvedor java interviews. Prepare for your interview. Get hired. Love your job.