Java Engineer Interview Questions | Glassdoor

Java Engineer Interview Questions


Java engineer interview questions shared by candidates

Top Interview Questions

Sort: RelevancePopular Date

Lots of questions about arrays, lists and hashmaps

1 Answer

Focus more on how hashmap works and its applications

Write a method to determine if a string starts with an uppercase letter.

1 Answer

1.Java Basics. 2.Plethora of Multithreading questions.GC 3.Simple data structure. (BFS) variation 4.Database Basics

1 Answer

How many credit cards does Amex issue in a year in US?

11 Answers

Given two files that has list of words (one per line), write a program to show the intersection.

5 Answers

3. Trees (binary and otherwise) form the basis of many common data structures. Please describe some of these data structures and when they might be used.

2 Answers

5. The user of this class expected the output “Num: 1000000”. They got something else. What went wrong and how would you fix it? public class Test { public final static int NUMTHREADS = 1000; public final static int NUMLOOP = 1000; public static int num = 0; static class Mythread extends Thread { @Override public void run() { for (int i = 0; i < NUMLOOP; i++) { ++num; } } } public static void main(String argv[]) { Mythread threads[] = new Mythread[NUMTHREADS]; for (int i = 0; i < NUMTHREADS; ++i) { threads[i] = new Mythread(); threads[i].start(); } try { for (int i = 0; i < NUMTHREADS; ++i) { threads[i].join(); } } catch (InterruptedException e) { } System.out.println("Num: " + num); } }

2 Answers

Q: complex topical question about solving a problem with a data structure and algorithm to transverse it effeciently

1 Answer

How to implement a hashMap from scratch?

1 Answer

None in my case.

1 Answer
110 of 250 Interview Questions