Myntra Interview Question

Round 2: - What is the difference between - String, StringBuilder, StringBuffer? - What is the difference between - Abstract Class vs Inheritance? - When will you go for Abstract Class and When will you go for Interfaces? - Given arr1 = {1, 12, 15, extra space1, extra space 2, ... ,extra space N}, arr2 = {2, 4, 35}. Merge these two sorted arrays in arr1 without the help of a third array. Makes sure that arr1 is also sorted. Give an O(1) solution. - Balance the given parentheses. - Given an array - Find the sum pairs which satisfies the condition a+b = c+d in the array