Java Developer Interview Questions in Mumbai, India | Glassdoor.com.au

Java Developer Interview Questions in Mumbai, India

645

Java developer interview questions shared by candidates

Top Interview Questions

Sort: RelevancePopular Date

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?

5 Answers

29

21th day

29

If there are 2 frogs in one minute in a box.If at every minute the no of frogs in the box doubles and at 70th minute the box gets full.Then at what minute the box was half filled with frogs?

1 Answer

how many hours of coding u do everyday?

1 Answer

how JVM works.

1 Answer

Interview question like that Q: 01 Given: 11. public static void parse(String str) { 12. try { 13. float f = Float.parseFloat(str); 14. } catch (NumberFormatException nfe) { 15. f = 0; 16. } finally { 17. System.out.println(f); 18. } 19. } 20. public static void main(String[] args) { 21. parse("invalid"); 22. } What is the result? A. 0.0 B. Compilation fails. C. A ParseException is thrown by the parse method at runtime. D. A NumberFormatException is thrown by the parse method at runtime. Answer: B

3 Answers

String related questions

1 Answer

Collection exception and thread related mostly questions. Spring boot,mvn

1 Answer

questios are from java, spring, hibernate

1 Answer

Heap memory based question

1 Answer
110 of 645 Interview Questions