Java Developer Interview Questions | Glassdoor.co.in

Java Developer Interview Questions

5,994

Java developer interview questions shared by candidates

Top Interview Questions

Sort: RelevancePopular Date

2. Write an efficient program to find the fixed point in a sorted array consisting of distinct integers in O(log n) time.

3 Answers

function binSearch(arr,st,end) { if(st>end) return false const mid=parseInt(st+end) if(arr[mid]===mid) return mid; if(arr[mid]

const binSearch=(arr,st,end)=> { if(st>end) return false const mid=parseInt( (st+end) /2) if(arr[mid]===mid) return mid; return arr[mid]

const binSearch=(arr,st,end)=> { if(st>end) return false const mid=parseInt( (st+end) /2) if(arr[mid]===mid) return mid; return arr[mid]

Which is the superclass of all classes?

8 Answers

Logical Coding Questions

2 Answers

Calculate area of room

2 Answers

Can you tell No. of Trees in Delhi?

3 Answers

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

add tow numbers without using +

1 Answer

You are given two sorted arrays, you have to find the 4th largest number in an optimised way, how will you do it?

1 Answer

Question were simple.

1 Answer

Core Java

1 Answer
110 of 5,994 Interview Questions