Java developer Interview Questions | Glassdoor.co.uk

Java developer Interview Questions

574

java developer interview questions shared by candidates

Top Interview Questions

Sort: RelevancePopular Date

How would you measure 4 litres of water if you have 3 litre and 5 litre canisters?

7 Answers

1) Pour water in 5 litre container 2) Pour 5 litre container into 3 litre until full. You are left with 2 litre in 5 litre container 3) Empty 3 liter container. Pour 2 litre into 3 litre container 4) Fill 5 litre container until full 5) Pour 1 litre into 3 litre container until full. Left with 4 litres in 5 litre container.

1. fill half of the 3 litre container 2. fill half of the 5 litre container

http://brainteaserbible.com/interview-brainteaser-puzzle-water-jug

As such no difficult questions. Just prepare all basics of java and some sample code on parsing string and arrays.

4 Answers

What is your age

4 Answers

how to write even or odd program without if else statement.

3 Answers

Aside from using a double or a float to store currency, what other alternative could be used?

3 Answers

How to avoid deadlocks?

2 Answers

Design patterns

2 Answers

Pseudo code

2 Answers

can class run without main method ?

2 Answers

I didn't make it to the technical interview.

2 Answers
110 of 574 Interview Questions