Pergunta de entrevista da empresa OpenText

1. Write a program to validate a paranthese in a string. send result as valid only if open bracket comes before close bracket. and if both the brackets are in the string then send valid String s = "{][(})" 2. Java OOPS concept 3. Compilation error and Run time error 4. what will be output based on program