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
Software Engineer Java Interview Questions
4,185 software engineer java interview questions shared by candidates
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
Difference between .equals and ==
What is JVM, jdk jre
Good questions are asked and moderate
Write an algorithm to find if two strings are anagrams.
Java programs to write sort the array without using sorting array sort method
String reverse using java programming
Are you able to change focus and context many times under your daily work? This is important as they work with continuosly changing context
Spring architecture Difference between finally, finalize and final
Viewing 81 - 90 interview questions