Pregunta de entrevista de Capgemini

Round 2--coding + Oops concepts+ selenium concepts 1. Code to sort array without using sorting method(iterative method you have to use) 2. Code to find 2nd largest element in array 3. Difference between POM and page factory 4. Explain String lass in java 5. Difference between throws and throw 6. Static and non static fields in java. How they are called from subclasses? 7. Concept of final, finally 8. Constructor overloading and method overriding 9. When to use super and this keywords Scenario based questions: 1. Can we instantiate webdriver driver() = new chromedriver() as chromedriver driver() = new chromedriver()??? 2. What will happen if we write return type for constructor? 3. Can we write two methods in same class with same names and signature