Java Development Lead Interview Questions

12,780 java development lead interview questions shared by candidates

Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: Open brackets must be closed by the same type of brackets. Open brackets must be closed in the correct order. Every close bracket has a corresponding open bracket of the same type. Example 1: Input: s = "()" Output: true Example 2: Input: s = "()[]{}" Output: true Example 3: Input: s = "(]" Output: false Example 4: Input: s = "([])" Output: true Given an array of size N filled with numbers from 1 to N-1 in random order. The array has only one repetitive element. The task is to find the repetitive element. Examples: Input: a[] = {1, 3, 2, 3, 4} Output: 3 Explanation: The number 3 is the only repeating element. Input: a[] = {1, 5, 1, 2, 3, 4} Output: 1 Brute Force To Optimization
avatar

Software Engineer - Java Developer

Interviewed at Paytm

3.2
Oct 10, 2024

Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: Open brackets must be closed by the same type of brackets. Open brackets must be closed in the correct order. Every close bracket has a corresponding open bracket of the same type. Example 1: Input: s = "()" Output: true Example 2: Input: s = "()[]{}" Output: true Example 3: Input: s = "(]" Output: false Example 4: Input: s = "([])" Output: true Given an array of size N filled with numbers from 1 to N-1 in random order. The array has only one repetitive element. The task is to find the repetitive element. Examples: Input: a[] = {1, 3, 2, 3, 4} Output: 3 Explanation: The number 3 is the only repeating element. Input: a[] = {1, 5, 1, 2, 3, 4} Output: 1 Brute Force To Optimization

What is the root class of java ? Tell me some of the main methods of Object class you know? What does the method NotifyAll() does ? What is the use of concurrentHashMap() in multithreading? What are different kind of Indexes in SQL? What are difference between DELETE and TRUNCATE in SQL?
avatar

Java Developer

Interviewed at Goldman Sachs

3.7
Jun 20, 2015

What is the root class of java ? Tell me some of the main methods of Object class you know? What does the method NotifyAll() does ? What is the use of concurrentHashMap() in multithreading? What are different kind of Indexes in SQL? What are difference between DELETE and TRUNCATE in SQL?

Viewing 4691 - 4700 interview questions

Glassdoor has 12,780 interview questions and reports from Java development lead interviews. Prepare for your interview. Get hired. Love your job.