imagine that you are standing near a 100-storey building and you have 2 identical crystal balls, you need at least attempts to find the floor at which the ball will break
Java Programmer Interview Questions
26,887 java programmer interview questions shared by candidates
What are Java Collections, and can you give an example of when you would use a HashMap versus a TreeMap?
Given an array, print the Next Greater Element (NGE) for every element. // // The Next greater Element for an element x is the first greater element on the right side of x in the array. // Elements for which no greater element exist, consider the next greater element as -1. // // Example: // // Input: arr[] = [ 4 , 5 , 2 , 25 ] // Output: 4 –> 5 // 5 –> 25 // 2 –> 25 // 25 –> -1 // Explanation: except 25 every element has an element greater than them present on the right side // // Input: arr[] = [ 13 , 7, 6 , 12 ] // Output: 13 –> -1 // 7 –> 12 // 6 –> 12 // 12 –> -1 // Explanation: 13 and 12 don’t have any element greater than them present on the right side
oops concept and arrays
write the database connection code in java?
The questions ranged from core java to advanced java. They asked more questions related to core. Collections, threading, exception handling, architecture, etc. were their favourite topics. They also provided scenarios where I was asked to provide solutions. Scenarios related to what if there is a bug in this part of the section, how to do validation for a particular content, etc.
Tell me about some of the projects you've done/on your resume. What languages did you use, what specifically was involved.
1. interviewer asked some questions about the resume. 2. Explain projects. 3. OOPs concepts 4. Core Java 5. Basic SQL
Discussed about bio data , regarding about basic idea about IT
Are you willing to stay up late and work\receive phone calls during holidays ?
Viewing 721 - 730 interview questions