Java Engineer Interview Questions | Glassdoor

Java Engineer Interview Questions

161

Java engineer interview questions shared by candidates

Top Interview Questions

Sort: Relevance Popular 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.

3 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

symmetric cryptography

2 Answers

covariant return types in java

2 Answers

Trick question associated with flipping the number 6 upside down to make 9. Android XML related questions.

1 Answer
110 of 161 Interview Questions